Hi there,
Trying to convert a program from python to java and i have to create and fill a 2 dimensional array with 0's.
I decided that using nested for loops should be the easiest way, but for some reason its not working.
The problem lies in this segment of code:
Trying to convert a program from python to java and i have to create and fill a 2 dimensional array with 0's.
I decided that using nested for loops should be the easiest way, but for some reason its not working.
The problem lies in this segment of code:
int [][] board = new int [10][10];
for (int i=0; i<=9; i++)
{for (int k=0; k<=9; k++)
{board[i][k] = 0;
}
}