All pastes #246677 Raw Edit

Unnamed

public text v1 · immutable
#246677 ·published 2006-11-12 14:53 UTC
rendered paste body
class Deck extends LinkedList
{
	//I don't know what this does, but it's here until I do
	private static final long serialVersionUID = 1L;

	public Deck()
	{
		super();
		int suit;
		int value;

		for(suit=1; suit<=4; suit++) {
			for(value=1; value<=13; value++) {
				this.add(new Card(suit,value));
			}
		}

	}
	
	//just for testing
	public void Test()
	{
		Card foo = new Card(0,0);
		foo = (Card)this.getLast();
		System.out.print(foo.name);
	}