Upon running my code, the whole files compiles, up to this statement, where it gives the error: Illegal start of expression. Ive checked other posts and forums, but almost all say to fix your brackets, and or semicolons. What else could be wrong here? Thanks in advance.
public static int getPiece(int row, int col) {
if ((row < 0) || (row >= size)) {
return INVALID;
}
if ((col < 0) || (col >= size)) {
return INVALID;
}
return board[row][col];
}
Aucun commentaire:
Enregistrer un commentaire