import java.util.*;

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

    public static final int EXAMPLE_PREAMBLE = 5;
    public static final long[] EXAMPLE_SEQUENCE = { 15, 25, 47, 40 };

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

    public boolean verify ()
    {
        Vector<Long> data = Util.loadData(EXAMPLE_INPUT, _debug);
        XMAS parser = new XMAS(_debug);
        Vector<Long> results = parser.validate(data, EXAMPLE_PREAMBLE);

        if (results.size() == 1)
        {
            Vector<Long> sequence = parser.findSequence(data, results.elementAt(0));

            if ((sequence != null) && (sequence.size() == 4))
            {
                for (int i = 0; i < sequence.size(); i++)
                {
                    if (EXAMPLE_SEQUENCE[i] != sequence.elementAt(i))
                    {
                        System.out.println("Incorrect sequence entry: "+sequence.elementAt(i));

                        return false;
                    }
                }

                return true;
            }
            else
                System.out.println("Incorrect sequence: "+sequence);
        }
        else
            System.out.println("Wrong number of invalid entries: "+results.size());

        return false;
    }

    private boolean _debug;
}
@@ -221,16 +221,69 @@
 , 40 %7D;%0A
+    public static final long EXAMPLE_TOTAL = 62;%0A    
 %0A    pub

Update Verifier.java