public class TicketCheck
{
    public static int[] STARTING_NUMBERS = { 2, 15, 0, 9, 1, 20 };

    public static void main (String[] args)
    {
        boolean verify = false;
        boolean debug = false;

        for (int i = 0; i < args.length; i++)
        {
            if ("-help".equals(args[i]))
            {
                System.out.println("Usage: [-debug] [-verify] [-help]");
                System.exit(0);
            }

            if ("-debug".equals(args[i]))
                debug = true;

            if ("-verify".equals(args[i]))
                verify = true;
        }

        if (verify)
        {
            Verifier v = new Verifier(debug);

            if (v.verify())
                System.out.println("Verified ok.");
            else
                System.out.println("Verify failed!");

            System.exit(0);
        }
    }
}
@@ -1,12 +1,33 @@
+import java.util.*;%0A%0A
 public class
@@ -63,55 +63,43 @@
 tic 
+f
 in
-t%5B%5D STARTING_NUMBERS = %7B 2, 15, 0, 9, 1, 20 %7D
+al String DATA_FILE = %22data.txt%22
 ;%0A%0A 
@@ -849,32 +849,32 @@
 System.exit(0);%0A
-
         %7D%0A    %7D%0A
@@ -866,16 +866,851 @@
        %7D
+%0A%0A        Vector%3CCategory%3E cats = Util.loadCategories(DATA_FILE, debug);%0A        Vector%3CTicket%3E ticks = Util.loadTickets(DATA_FILE, debug);%0A%0A        if (debug)%0A        %7B%0A            for (int i = 0; i %3C cats.size(); i++)%0A                System.out.println(cats.elementAt(i));%0A%0A            for (int j = 0; j %3C ticks.size(); j++)%0A                System.out.println(ticks.elementAt(j));%0A        %7D%0A%0A        int errorRate = 0;%0A%0A        for (int k = 0; k %3C ticks.size(); k++)%0A        %7B%0A            int%5B%5D values = Util.checkAlCategories(cats, ticks.elementAt(k));%0A%0A            for (int index = 0; index %3C values.length; index++)%0A            %7B%0A                if (values%5Bindex%5D != Util.CHECKED_NUMBER)%0A                    errorRate += values%5Bindex%5D;%0A            %7D%0A        %7D%0A%0A        System.out.println(%22Ticket scanning error rate: %22+errorRate);
 %0A    %7D%0A%7D

Update TicketCheck.java