import java.util.*;

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

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

    public boolean verify ()
    {
        Vector<Tile> tiles = Util.loadData(EXAMPLE_DATA);

        if (_debug)
        {
            Iterator<Tile> iter = tiles.iterator();

            System.out.println("Loaded:\n\n");

            while (iter.hasNext())
            {
                System.out.println(iter.next());
            }
        }

        Solver s = new Solver(_debug);
        Vector<Tile> corners = s.solve(tiles);

        if (corners.size() == 4)
        {
            /*
             * At this stage we have the tiles.
             */

            long result = 1L;

            for (int i = 0; i < 4; i++)
                result *= corners.elementAt(i).getID();

            if (result == EXAMPLE_RESULT)
                return true;

            System.out.println("Invalid result: "+result);
        }
        else
            System.out.println("Invalid number of corners: "+corners.size());

        return false;
    }

    private boolean _debug;
}
@@ -663,492 +663,8 @@
 );%0A%0A
-        if (corners.size() == 4)%0A        %7B%0A            /*%0A             * At this stage we have the tiles.%0A             */%0A%0A            long result = 1L;%0A%0A            for (int i = 0; i %3C 4; i++)%0A                result *= corners.elementAt(i).getID();%0A%0A            if (result == EXAMPLE_RESULT)%0A                return true;%0A%0A            System.out.println(%22Invalid result: %22+result);%0A        %7D%0A        else%0A            System.out.println(%22Invalid number of corners: %22+corners.size());%0A%0A
     

Update Verifier.java