import java.util.*;

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

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

    public boolean verify ()
    {
        Vector<Category> cats = Util.loadCategories(EXAMPLE_DATA, _debug);
        Vector<Ticket> ticks = Util.loadTickets(EXAMPLE_DATA, _debug);

        if (_debug)
        {
            for (int i = 0; i < cats.size(); i++)
                System.out.println(cats.elementAt(i));

            for (int j = 0; j < ticks.size(); j++)
                System.out.println(ticks.elementAt(j));
        }

        for (int k = 0; k < ticks.size(); k++)
        {
            for (int l = 0; l < cats.size(); l++)
            {
                if (!cats.elementAt(l).valid(ticks.elementAt(k)))
                    System.out.println(ticks.elementAt(k)+" is invalid.");
            }
        }

        return false;
    }

    private boolean _debug;
}
@@ -682,214 +682,57 @@
     
-for (int l = 0; l %3C cats.size(); l++)%0A            %7B%0A                if (!cats.elementAt(l).valid(ticks.elementAt(k)))%0A                    System.out.println(ticks.elementAt(k)+%22 is invalid.%22);%0A            %7D
+Util.checkAlCategories(cats, ticks.elementAt(k));
 %0A   

Update Verifier.java