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

public class Dealer
{
    public Dealer(String commandFile, boolean debug)
    {
        _commands = new Vector<String>();
        _debug = debug;
        
        readCommands(commandFile);
    }

    public boolean dealCards (int sizeOfDeck)
    {
        Deck theDeck = new Deck(sizeOfDeck, _debug);
        Enumeration<String> iter = _commands.elements();

        while (iter.hasMoreElements())
        {
            String command = iter.nextElement();

            if (command.startsWith(Commands.CUT))
                cut(command, theDeck);
            else
            {
                if (command.startsWith(Commands.DEAL_INTO))
                    dealInto(command, theDeck);
                else
                {
                    if (command.startsWith(Commands.DEAL_WITH_INCREMENT))
                        dealWithIncrement(command, theDeck);
                    else
                    {
                        System.out.println("Unknown command: "+command);

                        return false;
                    }
                }
            }
        }
        return false;
    }

    private void cut (String command, Deck theDeck)
    {

    }

    private void dealInto (String command, Deck theDeck)
    {

    }

    private void dealWithIncrement (String command, Deck theDeck)
    {
        
    }

    private final void readCommands(String inputFile)
    {
        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;

        try
        {       
            reader = new BufferedReader(new FileReader(inputFile));
            String line = null;
            
            do
            {
                line = reader.readLine();
                
                if (_debug)
                    System.out.println("Read command: " + line);

                if (line != null)
                    _commands.add(line);
            }
            while (line != null);
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }
    }

    private Vector<String> _commands;
    private boolean _debug;
}
@@ -1208,167 +1208,888 @@
   %7B%0A
-%0A    %7D%0A%0A    private void dealInto (String command, Deck theDeck)%0A    %7B%0A%0A    %7D%0A%0A    private void dealWithIncrement (String command, Deck theDeck)%0A    %7B%0A        
+        if (_debug)%0A            System.out.println(%22Command: %22+command);%0A%0A        int increment = argument(command, Commands.CUT);%0A    %7D%0A%0A    private void dealInto (String command, Deck theDeck)%0A    %7B%0A        if (_debug)%0A            System.out.println(%22Command: %22+command);%0A    %7D%0A%0A    private void dealWithIncrement (String command, Deck theDeck)%0A    %7B%0A        if (_debug)%0A            System.out.println(%22Command: %22+command);%0A%0A        int increment = argument(command, Commands.DEAL_WITH_INCREMENT);%0A    %7D%0A%0A    private final int argument (String command, String type)%0A    %7B%0A        String paramString = command.substring(type.length()).trim();%0A%0A        if (_debug)%0A            System.out.println(%22Parameter string: %22+paramString);%0A%0A        int value = Integer.getInteger(paramString);%0A%0A        if (_debug)%0A            System.out.println(%22Argument: %22+value);%0A%0A        return value;
 %0A   

Update Dealer.java