import java.util.*;

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

    public static final int EXAMPLE_PREAMBLE = 5;
    public static final int INVALID_NUMBER = 127;

    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)
        {
            if (results.elementAt(0) == INVALID_NUMBER)
                return true;
            else
                System.out.println("Wrong invalid entry: "+results.elementAt(0));
        }
        else
            System.out.println("Wrong number of invalid entries: "+results.size());

        return false;
    }

    private boolean _debug;
}
@@ -179,32 +179,52 @@
 nal 
-int INVALID_NUMBER = 127
+long%5B%5D EXAMPLE_SEQUENCE = %7B 15, 25, 47, 40 %7D
 ;%0A%0A 
@@ -568,51 +568,501 @@
     
-if (results.elementAt(0) == INVALID_NUMBER)
+Vector%3CLong%3E sequence = parser.findSequence(data, results.elementAt(0));%0A%0A            if ((sequence != null) && (sequence.size() == 4))%0A            %7B%0A                for (int i = 0; i %3C sequence.size(); i++)%0A                %7B%0A                    if (EXAMPLE_SEQUENCE%5Bi%5D != sequence.elementAt(i))%0A                    %7B%0A                        System.out.println(%22Incorrect sequence entry: %22+sequence.elementAt(i));%0A%0A                        return false;%0A                    %7D%0A                %7D%0A
 %0A   
@@ -1087,16 +1087,30 @@
 n true;%0A
+            %7D%0A
         
@@ -1158,51 +1158,38 @@
 ln(%22
-Wrong invalid entry: %22+results.elementAt(0)
+Incorrect sequence: %22+sequence
 );%0A 

Update Verifier.java