I have a problem with Java Programming. I am writing a TatTicToe Program but I found a Error. It is a unexpected type for mark.equals("X")? currentPlayer=1: currentPlayer=0;
I don't know what happen. If you don't mind , I hope that All people will give some advises to this problem.
Thank you for your attention.
The Detail of Execution Information :
Compiling 1 source file to C:\TicTacToe \build\classes
C:\TicTacToe \src\tictactoe \Server.java:242: unexpected type
found : value
mark.equals("X")? currentPlayer=1: currentPlayer=0;
BUILD FAILED (total time: 7 seconds)