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.
|
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)