Fix toString for Ace

This commit is contained in:
Dave Burke
2022-03-03 21:43:29 -06:00
parent 4e83ea6664
commit 669496dfc7

View File

@@ -44,7 +44,9 @@ public final class Card {
public String toString() {
StringBuilder result = new StringBuilder(2);
if(value < 11) {
if(value == 1) {
result.append("A");
} else if(value < 11) {
result.append(value);
} else if(value == 11) {
result.append('J');