Class Deck

java.lang.Object
  
public class Deck
extends java.lang.Object


Field Summary
 Card card
           
 
Constructor Summary
Deck()
           
 
Method Summary
 void Deck()
           
 void giveRandomCard(java.lang.Object card)
          returns a random card and removes it from the deck
 void shuffle()
           
 java.lang.String toString()
          return returns one string with the total number of cards followed by all the cards represented as rank - Suit (ex 2D)
 
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

card

public Card card
Constructor Detail

Deck

public Deck()
Method Detail

Deck

public void Deck()

giveRandomCard

public void giveRandomCard(java.lang.Object card)
returns a random card and removes it from the deck

Parameters:
card - return random card

shuffle

public void shuffle()

toString

public java.lang.String toString()
return returns one string with the total number of cards followed by all the cards represented as rank - Suit (ex 2D)

Overrides:
toString in class java.lang.Object