} // <-- end of main method
Nqueens qq = new Nqueens(4); // valid declaration and initialization of object field, but I don't think this is what you wanted
qq.solution(); // code isn't inside...
Type: Posts; User: helloworld922
} // <-- end of main method
Nqueens qq = new Nqueens(4); // valid declaration and initialization of object field, but I don't think this is what you wanted
qq.solution(); // code isn't inside...
You have some code in your testN class which isn't inside of any method (last 3 lines).