import java.util.*;
import java.io.*;

public class Util
{
    public static final String SPACE = " ";

    public static final Vector<OpCode> loadData (String inputFile, boolean debug)
    {
        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        Vector<OpCode> values = new Vector<OpCode>();

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

            while ((line = reader.readLine()) != null)
            {
                int space = line.indexOf(SPACE);
                String type = line.substring(0, space).trim();
                OpCode opcode = null;

                switch (type)
                {
                    case OpCode.ACCUMULATOR:
                    {
                        Integer v = Integer.parseInt(line.substring(space +1));

                        opcode = new Accumulator(v);
                    }
                    break;
                    case OpCode.JUMP:
                    {
                        Integer v = Integer.parseInt(line.substring(space +1));

                        opcode = new Jump(v);
                    }
                    break;
                    case OpCode.NOOP:
                    {
                        Integer v = Integer.parseInt(line.substring(space +1));

                        opcode = new NoOp(v);
                    }
                    break;
                    default:
                    {
                        System.out.println("Unknown opcode: "+type);
                    }
                    break;
                }

                if (debug)
                    System.out.println("Loaded "+opcode);
                    
                values.add(opcode);
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        return values;
    }

    public static final void printInstructions (Vector<OpCode> instructions)
    {
        Enumeration<OpCode> iter = instructions.elements();

        System.out.println("\nInstructions:\n");

        while (iter.hasMoreElements())
        {
            System.out.println(iter.nextElement());
        }
    }

    private Util ()
    {
    }
}
@@ -80,66 +80,22 @@
 nal 
-String SPACE = %22 %22;%0A%0A    public static final Vector%3COpCode
+Vector%3CInteger
 %3E lo
@@ -264,22 +264,23 @@
  Vector%3C
-OpCode
+Integer
 %3E values
@@ -293,22 +293,23 @@
  Vector%3C
-OpCode
+Integer
 %3E();%0A%0A  
@@ -518,1858 +518,347 @@
     
-int space = line.indexOf(SPACE);%0A                String type = line.substring(0, space).trim();%0A                OpCode opcode = null;%0A%0A                switch (type)%0A                %7B%0A                    case OpCode.ACCUMULATOR:%0A                    %7B%0A                        Integer v = Integer.parseInt(line.substring(space +1));%0A%0A                        opcode = new Accumulator(v);%0A                    %7D%0A                    break;%0A                    case OpCode.JUMP:%0A                    %7B%0A                        Integer v = Integer.parseInt(line.substring(space +1));%0A%0A                        opcode = new Jump(v);%0A                    %7D%0A                    break;%0A                    case OpCode.NOOP:%0A                    %7B%0A                        Integer v = Integer.parseInt(line.substring(space +1));%0A%0A                        opcode = new NoOp(v);%0A                    %7D%0A                    break;%0A                    default:%0A                    %7B%0A                        System.out.println(%22Unknown opcode: %22+type);%0A                    %7D%0A                    break;%0A                %7D%0A%0A                if (debug)%0A                    System.out.println(%22Loaded %22+opcode);%0A                    %0A                values.add(opcode);%0A            %7D%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%0A        return values;%0A    %7D%0A%0A    public static final void printInstructions (Vector%3COpCode%3E instructions)%0A    %7B%0A        Enumeration%3COpCode%3E iter = instructions.elements();%0A%0A        System.out.println(%22%5CnInstructions:%5Cn%22);%0A%0A        while (iter.hasMoreElements())%0A        %7B%0A            System.out.println(iter.nextElement());%0A        %7D
+values.add(Integer.parseInt(line));%0A            %7D%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%0A        return values;
 %0A   

Update Util.java