int[][] numbers = new int[10][10];
int sum=0;
for ( int x = 0; x < numbers.length; x++){
for ( int y = 0; y < numbers.length; y++){
sum = sum + 1;
numbers[x][y] = sum;
println("["+x+"]"+"["+y+"]"+" = "+numbers[x][y]);
}
}