java.lang.Object
public class Deck
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 |
---|
public Card card
Constructor Detail |
---|
public Deck()
Method Detail |
---|
public void Deck()
public void giveRandomCard(java.lang.Object card)
card
- return random cardpublic void shuffle()
public java.lang.String toString()
toString
in class java.lang.Object