for(int row = 0; row < arr.length; row++) { for(int col = 0; col < arr[i].length; col++) { arr[row][col] = col; } }