import java.util.*;

public class Verifier
{
    public static final String EXAMPLE_DATA = "example.txt";

    public static final long EXAMPLE_ADDRESS_1 = 7;
    public static final long EXAMPLE_VALUE_1 = 101;
    public static final long EXAMPLE_ADDRESS_2 = 8;
    public static final long EXAMPLE_VALUE_2 = 64;

    public Verifier (boolean debug)
    {
        _debug = debug;
    }

    public boolean verify ()
    {
        Vector<Command> cmds = Util.loadCommands(EXAMPLE_DATA, _debug);
        Memory mem = new Memory();

        for (int i = 0; i < cmds.size(); i++)
        {
            System.out.println("Loaded:\n"+cmds.elementAt(i));

            cmds.elementAt(i).execute(mem);
        }

        if (mem.getValue(EXAMPLE_ADDRESS_1) == EXAMPLE_VALUE_1)
        {
            if (mem.getValue(EXAMPLE_ADDRESS_2) == EXAMPLE_VALUE_2)
                return true;
            else
                System.out.println("Wrong value at memory address "+EXAMPLE_ADDRESS_2+": "+EXAMPLE_VALUE_2);
        }
        else
            System.out.println("Wrong value at memory address "+EXAMPLE_ADDRESS_1+": "+EXAMPLE_VALUE_1);

        return false;
    }

    private boolean _debug;
}
@@ -306,16 +306,66 @@
 _2 = 64;
+%0A    public static final long EXAMPLE_TOTAL = 165;
 %0A%0A    pu
@@ -622,32 +622,60 @@
  i++)%0A        %7B%0A
+            if (_debug)%0A    
             Syst
@@ -721,16 +721,16 @@
 At(i));%0A
-
 %0A       
@@ -935,24 +935,310 @@
     
-    return true;
+%7B%0A                if (mem.getValue(EXAMPLE_ADDRESS_1) + mem.getValue(EXAMPLE_ADDRESS_2) == EXAMPLE_TOTAL)%0A                    return true;%0A                else%0A                    System.out.println(%22Incorrect total: %22+(mem.getValue(EXAMPLE_ADDRESS_1) + mem.getValue(EXAMPLE_ADDRESS_2)));%0A            %7D
 %0A   

Update Verifier.java