I am trying to define a nested class using Eclipse ....
public class Xxx {
private boolean[][] grid;
private boolean OPEN = true;
private Site[][] s;
class Site() {
private int val;
Site() {
}
}
public Xxx(int N) {
........
}
.......
}
In the line defining the inner class, Site, I get an error ...
Several markers on this line - Syntax error in the token "class", @expected - Syntax error, insert "}" to complete the block
Is my syntax wrong? I do not understand the message.
source
share