There was an error while loading. Please reload this page.
1 parent 1e32fb1 commit 93cda7cCopy full SHA for 93cda7c
src/Course05_Lists/Exercise/P06_CardsGame.java
@@ -33,8 +33,7 @@ public static void main(String[] args) {
33
if (firstPlayerCards.size() == 0) {
34
System.out.printf("Second player wins! Sum: %d", getCardsSum(secondPlayerCards));
35
}
36
-
37
- else if (secondPlayerCards.size() == 0) {
+ else {
38
System.out.printf("First player wins! Sum: %d", getCardsSum(firstPlayerCards));
39
40
0 commit comments