0

n queen problem

I am trying to modify this code i got from the internet where the users can input the N size of the chessboard however I always get errors. Here is the code: https://code.sololearn.com/cCdCkOpsa04z/#java

28th Feb 2020, 1:00 PM
miles away
miles away - avatar
5 Answers
28th Feb 2020, 1:04 PM
Taste
Taste - avatar
+ 1
so what error you have and which line it occur ?
28th Feb 2020, 1:54 PM
Taste
Taste - avatar
0
https://code.sololearn.com/cCdCkOpsa04z/#java oh sorry, please see the complete code here.
28th Feb 2020, 1:23 PM
miles away
miles away - avatar
0
oh, i didnt do it here in sololearn, i was seeking for help because i knew some of you guys could help me beside stackoverflow
28th Feb 2020, 1:51 PM
miles away
miles away - avatar
0
like adding JOptionPane so the users could input the N, and pass it on the methods sometimes i get IndexOutofBoundsException, because in the original code which i show you, it was only limited in 8x8 queens, i'd like to modify it so users could specify the size
28th Feb 2020, 2:17 PM
miles away
miles away - avatar