import java.util.*;

public class Verifier
{
    public static final String EXAMPLE1 = "example1.txt";
    public static final long EXAMPLE1_RESULT = 71;
    public static final String EXAMPLE2 = "example2.txt";
    public static final long EXAMPLE2_RESULT = 51;
    public static final String EXAMPLE3 = "example3.txt";
    public static final long EXAMPLE3_RESULT = 26;
    public static final String EXAMPLE4 = "example4.txt";
    public static final long EXAMPLE4_RESULT = 437;

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

    public boolean verify ()
    {
        Vector<String> data = Util.loadData(EXAMPLE1);
        MathsParser p = new MathsParser(_debug);
        Long result = p.parse(data);

        if (result == EXAMPLE1_RESULT)
        {
            data = Util.loadData(EXAMPLE2);

            result = p.parse(data);

            if (result == EXAMPLE2_RESULT)
            {
                data = Util.loadData(EXAMPLE3);

                result = p.parse(data);

                if (result == EXAMPLE3_RESULT)
                {
                    data = Util.loadData(EXAMPLE4);

                    result = p.parse(data);

                    if (result == EXAMPLE4_RESULT)
                        return true;
                    else
                        System.out.println("Incorrect value for "+EXAMPLE4+" "+result);
                }
                else
                    System.out.println("Incorrect value for "+EXAMPLE3+" "+result);
            }
            else
                System.out.println("Incorrect value for "+EXAMPLE2+" "+result);
        }
        else
            System.out.println("Incorrect value for "+EXAMPLE1+" "+result);

        return false;
    }

    private boolean _debug;
}
@@ -474,16 +474,240 @@
 T = 437;
+%0A    public static final String EXAMPLE5 = %22example5.txt%22;%0A    public static final long EXAMPLE5_RESULT = 12240;%0A    public static final String EXAMPLE6 = %22example6.txt%22;%0A    public static final long EXAMPLE6_RESULT = 13632;
 %0A%0A    pu
@@ -1466,24 +1466,786 @@
     
-    return true;
+%7B%0A                        data = Util.loadData(EXAMPLE5);%0A%0A                        result = p.parse(data);%0A%0A                        if (result == EXAMPLE5_RESULT)%0A                        %7B%0A                            return true;%0A                            /*%0A                            data = Util.loadData(EXAMPLE6);%0A%0A                            result = p.parse(data);%0A%0A                            if (result == EXAMPLE6_RESULT)%0A                                return true;%0A                            else%0A                                System.out.println(%22Incorrect value for %22+EXAMPLE6+%22 %22+result);*/%0A                        %7D%0A                        else%0A                            System.out.println(%22Incorrect value for %22+EXAMPLE5+%22 %22+result);%0A                    %7D
 %0A   

Update Verifier.java