import java.util.*;

/*
 * Represents the table onto which we can deal cards. Cam also
 * pick up cards from table if there are any present.
 */

public class Table
{
    public Table (boolean debug)
    {
        _theTable = null;
        _debug = debug;
    }

    public boolean deal (Deck theDeck, int increment)
    {
        int numberOfCards = theDeck.numberOfCards();
        int index = 0;

        _theTable = new Vector<Integer>(theDeck.numberOfCards());

        for (int i = 0; i < numberOfCards; i++)
        {
            if (_theTable.get(index) != null)
                return false;

            _theTable.set(index, _theDeck.dealFromTop());

            index += increment;

            if (index >= numberOfCards)
                index -= numberOfCards;
        }

        return true;
    }

    public Deck collectCards ()
    {
        if (_theTable == null)
            return null;

        Deck toReturn = new Deck(_theTable);

        _theTable = null; // make sure cards are only in one place at a time.

        return toReturn;
    }

    private Vector<Integer> _theTable;
    private boolean _debug;
}
@@ -943,16 +943,24 @@
 theTable
+, _debug
 );%0A%0A    

Update Table.java