package jp.ne.naokiur.design.pattern.memento;

public class App {

    public static void main(String[] args) {
        CanvasVersionManagement management = new CanvasVersionManagement();
        Canvas canvas = new Canvas();

        canvas.paint("test");
        System.out.println(canvas.getPainting());
        management.add(1, canvas.createMemento());

        canvas.paint("hoge");
        System.out.println(canvas.getPainting());
        management.add(2, canvas.createMemento());

        canvas.revertMemento(management.getVersions().get(1));
        System.out.println(canvas.getPainting());
    }
}

@@ -476,32 +476,392 @@
 ateMemento());%0A%0A
+        canvas.revertMemento(management.getVersions().get(1));%0A        System.out.println(canvas.getPainting());%0A%0A        canvas.revertMemento(management.getVersions().get(2));%0A        System.out.println(canvas.getPainting());%0A%0A        canvas.paint(%22fuga%22);%0A        System.out.println(canvas.getPainting());%0A        management.add(3, canvas.createMemento());%0A%0A
         canvas.r

Change confirmation of execution code..