Update NQueens.java

Submission Result: Compile Error

Line 13: incompatible types