In a program I am writing for homework, one method yields an unexpected error:
(The variable n has been declared 9 earlier in the program)

private boolean[] getAllowedValues(int row, int col) {...