Method displays different text depending on the state of the game

master
sgoudham 4 years ago
parent 805472afb3
commit dbc9e34839
No known key found for this signature in database
GPG Key ID: EF51A29A50FB754C

@ -11,8 +11,8 @@ public class TableHand extends Hand {
}
}
public void display() {
System.out.println("Current Deck: ");
public void display(String text) {
System.out.println("\n" + text);
for (Entry<Suits, Hand> hand : sevensTableHand.entrySet()) {
System.out.println(hand.getKey() + ": " + hand.getValue().toString());
}

Loading…
Cancel
Save