|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDeck
public class Deck
Constructor Summary | |
---|---|
Deck()
Constructs a Deck of 52 playing cards. |
Method Summary | |
---|---|
void |
dealCards(Card[] pile1,
Card[] pile2)
Deals this Deck of cards to the two passed arrays. |
static void |
main(java.lang.String[] args)
Main allows us to test the methods in this Deck class |
void |
shuffle()
Shuffles this Deck object. |
java.lang.String |
toString()
returns the string representation of this Deck object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Deck()
Method Detail |
---|
public void shuffle()
public void dealCards(Card[] pile1, Card[] pile2)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |