public class AdapterArray
{
    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: [-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
@@ -42,16 +42,72 @@
 Array%0A%7B%0A
+    public static final String DATA_FILE = %22data.txt%22;%0A%0A
     publ
@@ -867,16 +867,569 @@
        %7D
+%0A%0A        Vector%3CJoltageAdapter%3E adapters = Util.loadData(DATA_FILE, debug);%0A        Device device = Util.largest(adapters, debug);%0A        Connector con = new Connector(debug);%0A        Vector%3CJoltageAdapter%3E sorted = con.connect(adapters);%0A%0A        sorted.add(device.getAdapter());%0A        con.getDifferenceThree().add(device.getAdapter());%0A        %0A        int result = con.getDifferenceOne().size() * con.getDifferenceThree().size();%0A%0A        System.out.println(%22Number of 1-jolt differences multiplied by the number of 3-jolt differences: %22+result);
 %0A    %7D%0A%7D

Update AdapterArray.java