import java.util.*;

public class Deck
{
    public static final int SIZE_OF_DECK = 10007;

    public Deck (boolean debug)
    {
        this(debug, false);
    }

    public Deck (boolean debug, boolean populateDeck)
    {
        _theDeck = new Vector<Integer>(SIZE_OF_DECK);
        _debug = debug;

        if (populateDeck)
            initialise();
    }

    public void dealInto (Deck recipient)
    {
        for (int i = 0; i < SIZE_OF_DECK; i++)
            recipient._theDeck.set(SIZE_OF_DECK -1 -i, _theDeck.elementAt(i));
    }

    public String toString ()
    {
        String str = "Deck: ";

        for (int i = 0; i < SIZE_OF_DECK; i++)
            str += "\n"+_theDeck.elementAt(i);

        return str;
    }

    private void initialise ()
    {
        for (int i = 0; i < SIZE_OF_DECK; i++)
            _theDeck.add(i, i);
    }

    private Vector<Integer> _theDeck;
    private boolean _debug;
}
import java.util.*;

public class Deck
{
    public static final int SIZE_OF_DECK = 10007;

    public Deck (boolean debug)
    {
        this(debug, true);
    }

    public Deck (boolean debug, boolean populateDeck)
    {
        _theDeck = new Vector<Integer>(SIZE_OF_DECK);
        _debug = debug;

        if (populateDeck)
            populateWithCards();
        else
            initialise();
    }

    public void dealInto (Deck recipient)
    {
        for (int i = 0; i < SIZE_OF_DECK; i++)
        {
            recipient._theDeck.set(SIZE_OF_DECK -1 -i, _theDeck.elementAt(i));
        }
    }

    public String toString ()
    {
        String str = "Deck: ";

        for (int i = 0; i < SIZE_OF_DECK; i++)
            str += "\n"+_theDeck.elementAt(i);

        return str;
    }

    private void initialise ()
    {
        for (int i = 0; i < SIZE_OF_DECK; i++)
            _theDeck.add(i, -1);
    }

    private void populateWithCards ()
    {
        for (int i = 0; i < SIZE_OF_DECK; i++)
            _theDeck.add(i, i);
    }

    private Vector<Integer> _theDeck;
    private boolean _debug;
}
Update Deck.java