public class Main { public static void main(String[] args) { int[][] sums = new int[10][12]; for (int row = 0; row < 10; row++) { for (int col = 0; col < 12; col++) { sums[row][col] = row + col; } } for (int row = 0; row < sums.length; row++) { for (int col = 0; col < sums[row].length; col++) { System.out.print(sums[row][col] + "\t"); } System.out.println(); } } }