Fix toString for Ace

This commit is contained in:
Dave Burke
2022-03-03 21:43:29 -06:00
parent a8d2e12597
commit 193edaa428

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');