int grid[][] = new int[12][8]; // a 12×8 grid of int grid[0][0] = 8; grid[1][1] = 5; System.out.println(grid.length); // 12 System.out.println(grid[0].length); // 8 System.out.println(grid[11].length); // 8