Merge pull request #604 from Rohit2Lohia/patch-1

Added missing break statement
This commit is contained in:
Jeff Atwood
2022-03-05 14:16:05 -06:00
committed by GitHub

View File

@@ -33,6 +33,7 @@ public class TicTacToe2 {
} else if (input == 'O' || input == 'o') {
yourChar = 'O';
compChar = 'X';
break;
} else {
System.out.println("THATS NOT 'X' OR 'O', TRY AGAIN");
in.nextLine();