|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectps0.optional.MyHand
public class MyHand extends Object
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
|
void |
printHand_OnlyHearts(Collection<Card> hand)
Print only the cards in hand that are hearts |
void |
printHand_RemoveFaceCards(Collection<Card> hand)
Print only the cards in hand that are number cards AND remove face cards from hand |
void |
printHand(Collection<Card> hand)
Print the contents of a hand of cards to the screen. |
void |
sortLargesttoSmallest()
Sorts the cards so that any subsequent calls to printHand will print the Hand from the largest to the smallest. |
void |
sortSmallestToLargest()
Sorts the cards so that any subsequent calls to printHand will print the Hand from the smallest to the largest. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void main(String[] args)
public void printHand(Collection<Card> hand)
public void sortSmallestToLargest()
public void sortLargesttoSmallest()
public void printHand_OnlyHearts(Collection<Card> hand)
public void printHand_RemoveFaceCards(Collection<Card> hand)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |