import java.io.*;

public class CircuitBoard
{
    public static final String SEPARATOR = ",";

    public static final int LENGTH = 1000;
    public static final int WIDTH = 1000;
    public static void main (String[] args)
    {
        boolean verify = false;
        boolean dump = false;

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

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

        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        String[] line1 = null;
        String[] line2 = null;

        try
        {
            reader = new BufferedReader(new FileReader(DATA_FILE));
            String line = null;

            while ((line = reader.readLine()) != null)
            {
                if (line1 == null)
                    line1 = line.split(SEPARATOR);
                else
                {
                    if (line2 == null)
                        line2 = line.split(SEPARATOR);
                    else
                    {
                        System.out.println("Unexpected extra lines in input file!");

                        System.exit(0);
                    }
                }
            }

            if (dump)
                dumpData(line1, line2);
            else
            {
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }
    }

    private static final void dumpData (String[] line1, String[] line2)
    {
        System.out.println("Wire 1:");
        for (String str : line1)
        {
            System.out.println(str);
        }

        System.out.println("\nWire 2:");
        for (String str : line2)
        {
            System.out.println(str);
        }
    }

    private static final String DATA_FILE = "data.txt";
}
@@ -12,16 +12,342 @@
 .io.*;%0A%0A
+/*%0A * Take the data given and find where the two wires cross.%0A * %0A * The size of the circuit board should have been obtained%0A * correctly beforehand using something like CircuitSize or%0A * TestPlotter. The algorithms which those programs use%0A * could be incorporated directly here but for now we'll keep%0A * things simple.%0A */%0A%0A
 public c
@@ -415,16 +415,55 @@
 = %22,%22;%0A%0A
+    // default circuit board size%0A    %0A
     publ

Update CircuitBoard.java