Skip to content

Commit 93cda7c

Browse files
Update P06_CardsGame.java
1 parent 1e32fb1 commit 93cda7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Course05_Lists/Exercise/P06_CardsGame.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ public static void main(String[] args) {
3333
if (firstPlayerCards.size() == 0) {
3434
System.out.printf("Second player wins! Sum: %d", getCardsSum(secondPlayerCards));
3535
}
36-
37-
else if (secondPlayerCards.size() == 0) {
36+
else {
3837
System.out.printf("First player wins! Sum: %d", getCardsSum(firstPlayerCards));
3938
}
4039
}

0 commit comments

Comments
 (0)