There is only one problem in your code:
Change for (int j=0; j<values[i].length; i++)
to for (int j=0; j<values[i].length; j++)
You put i++
instead of j++
.
1
solved Trying to create a chessboard using an array and graphics
There is only one problem in your code:
Change for (int j=0; j<values[i].length; i++)
to for (int j=0; j<values[i].length; j++)
You put i++
instead of j++
.
1
solved Trying to create a chessboard using an array and graphics