import java.util.*;

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

    public static final String FIRST = "row";
    public static final String SECOND = "class";
    public static final String THIRD = "seat";

    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);
        Vector<Ticket> validTickets = Util.validTickets(cats, ticks);

        if (_debug)
        {
            for (int j = 0; j < validTickets.size(); j++)
                System.out.println(validTickets.elementAt(j));
        }

        HashMap<Category, Integer> results = Util.order(validTickets, cats);

        if (_debug)
        {
            System.out.println();

            for (int m = 0; m < results.size(); m++)
            {
                System.out.println("Element "+m+" maps to category "+results.elementAt(m));
            }
        }

        /*
        if (FIRST.equals(results.elementAt(0).getType()) &&
            SECOND.equals(results.elementAt(1).getType()) &&
            THIRD.equals(results.elementAt(2).getType()))
        {
            return true;
        }*/

        return false;
    }

    private boolean _debug;
}
@@ -807,32 +807,34 @@
  cats);%0A%0A       
+//
  if (_debug)%0A   
@@ -856,187 +856,311 @@
     
-System.out.println();%0A%0A            for (int m = 0; m %3C results.size(); m++)%0A            %7B%0A                System.out.println(%22Element %22+m+%22 maps to category %22+results.elementAt(m)
+Iterator%3CCategory%3E iter = results.keySet().iterator();%0A%0A            System.out.println();%0A%0A            while (iter.hasNext())%0A            %7B%0A                Category cat = iter.next();%0A                Integer value = results.get(cat);%0A%0A                System.out.println(%22Category %22+cat+%22 maps to %22+value
 );%0A 

Update Verifier.java