I have revised the code in my previous post - actually tweaking the teacher's suggestion to fit a particular program - and now have a new problem. I get the following error (it actually prints it twice) for the following code:
Type mismatch: cannot convert from Boolean[] to Boolean.
public boolean check() { boolean[] checkValues = new boolean[n]; for (int i = 0; i < n; i++) checkValues[i] = true; for (int x = 0; x < n; x++) { for (int y = 0; y < n; y++) { // Check row for (int i = 0; i < n; i++) { if (board[x][i] != LOCATION_EMPTY) checkValues[board[x][i]] = false; } // Check column for (int i = 0; i < n; i++) { if (board[i][y] != LOCATION_EMPTY) checkValues[board[i][y]] = false; } } return checkValues; } }