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

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

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

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

            while ((line = reader.readLine()) != null)
            {
                values.add(new JoltageAdapter(Integer.parseInt(line), debug));
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        return values;
    }

    private Util ()
    {
    }
}
@@ -522,70 +522,751 @@
     
-values.add(new JoltageAdapter(Integer.parseInt(line), debug));
+char action = line.charAt(0);%0A                int amount = Integer.parseInt(line.substring(1));%0A%0A                switch (action)%0A                %7B%0A                    case Action.EAST:%0A                    case Action.WEST:%0A                    case Action.NORTH:%0A                    case Action.SOUTH:%0A                    case Action.LEFT:%0A                    case Action.RIGHT:%0A                    case Action.FORWARD:%0A                    %7B%0A                        values.add(new Command(action, amount));%0A                    %7D%0A                    break;%0A                    default:%0A                    %7B%0A                        System.out.println(%22Unknown action: %22+action);%0A                    %7D%0A                    break;%0A                %7D
 %0A   

Update Util.java