import java.io.*;

public class Amplifier
{
    public static void main (String[] args)
    {
        boolean debug = false;
        int defaultInput = 5;
        boolean runVerifier = false;

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

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

            if ("-input".equals(args[i]))
                defaultInput = Integer.parseInt(args[i+1]);

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

        /*
         * Create the computer which will do the real work.
         */

        _theComputer = new Intcode(debug);

        if (runVerifier)
        {
            Verifier theVerifier = new Verifier(_theComputer, debug);

            theVerifier.verify();
            System.exit(0);
        }

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

        BufferedReader reader = null;
        String[] values = null;

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

            while ((line = reader.readLine()) != null)
            {
                values = line.split(Intcode.DELIMITER);
            }

            String str = _theComputer.parseAndExecute(values, defaultInput);

            System.out.println("Got back "+str);
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }
    }

    private static Intcode _theComputer = null;

    private static final String DATA_FILE = "instructions.txt";
}
@@ -1,23 +1,4 @@
-import java.io.*;%0A%0A
 publ
@@ -33,757 +33,50 @@
 lic 
-static void main (String%5B%5D args)%0A    %7B%0A        boolean debug = false;%0A        int defaultInput = 5;%0A        boolean runVerifier = false;%0A%0A        for (int i = 0; i %3C args.length; i++)%0A        %7B%0A            if (%22-help%22.equals(args%5Bi%5D))%0A            %7B%0A                System.out.println(%22Usage: %5B-help%5D %5B-verify%5D %5B-debug%5D %5B-input %3Cvalue%3E%5D%22);%0A                System.exit(0);%0A            %7D%0A%0A            if (%22-debug%22.equals(args%5Bi%5D))%0A                debug = true;%0A%0A            if (%22-input%22.equals(args%5Bi%5D))%0A                defaultInput = Integer.parseInt(args%5Bi+1%5D);%0A%0A            if (%22-verify%22.equals(args%5Bi%5D))%0A                runVerifier = true;%0A        %7D%0A%0A        /*%0A         * Create the computer which will do the real work.%0A         */%0A%0A        _theC
+Amplifier (boolean debug)%0A    %7B%0A        _c
 ompu
@@ -101,25 +101,24 @@
 debug);%0A
-%0A
         
 if (runV
@@ -113,1093 +113,87 @@
     
-if (runVerifier)%0A        %7B%0A            Verifier theVerifier = new Verifier(_theComputer, debug);%0A%0A            theVerifier.verify();%0A            System.exit(0);%0A        %7D%0A%0A        /*%0A         * Open the data file and read it in.%0A         */%0A%0A        BufferedReader reader = null;%0A        String%5B%5D values = null;%0A%0A        try%0A        %7B%0A            reader = new BufferedReader(new FileReader(DATA_FILE));%0A            String line = null;%0A%0A            while ((line = reader.readLine()) != null)%0A            %7B%0A                values = line.split(Intcode.DELIMITER);%0A            %7D%0A%0A            String str = _theComputer.parseAndExecute(values, defaultInput);%0A%0A            System.out.println(%22Got back %22+str);%0A        %7D%0A        catch (Throwable ex)%0A        %7B%0A            ex.printStackTrace();%0A        %7D%0A        finally%0A        %7B%0A            try%0A            %7B%0A                reader.close();%0A            %7D%0A            catch (Throwable ex)%0A            %7B%0A            %7D%0A        %7D%0A    %7D%0A%0A    private static Intcode _theComputer = null;%0A%0A    private static final String DATA_FILE = %22instructions.txt%22
+_debug = debug;%0A    %7D%0A%0A    private Intcode _computer;%0A    private boolean _debug
 ;%0A%7D

Update Amplifier.java