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

        for (int i = 0; i < args.length; i++)
        {
            if ("-help".equals(args[i]))
            {
                System.out.println("Usage: [-verify] [-debug] [-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
@@ -48,16 +48,74 @@
 ssing%0A%7B%0A
+    public static final String INPUT_FILE = %22input.txt%22;%0A%0A
     publ
@@ -875,16 +875,553 @@
        %7D
+%0A%0A        Vector%3CPassport%3E passports = Batch.loadData(INPUT_FILE, debug);%0A        Enumeration%3CPassport%3E iter = passports.elements();%0A        int numberOfValidPassports = 0;%0A%0A        while (iter.hasMoreElements())%0A        %7B%0A            Passport p = iter.nextElement();%0A%0A            if (debug)%0A                System.out.println(%22Checking %22+p+%22 and validity: %22+p.isValid());%0A%0A            if (p.isValid())%0A                numberOfValidPassports++;%0A        %7D%0A%0A        System.out.println(%22Number of valid passports: %22+numberOfValidPassports);
 %0A    %7D%0A%7D

Update PassportProcessing.java