You might be getting thrown off by the fact that an array is zero based...
therefore to access it by row and col or any other discard the 0 element and make the array greater by 1...
see this sample
myArray[3 * 10l] = 30;
int rows = 10;
int cols = 10;
myArray = new int[rows * cols + 1];
will assign the value 30 to the 31st item or item index 30...
in a two dimensional array this would be item....3rd row 10th column....
or to loop through the items..
the following code assigns each index a value equal to it's index
starting at 1 and ending at n
myArray[i*10 + j] = ((i *10) + j);