void main() {
    int[][] grid = {
        {1, 2, 3},
        {4, 5, 6},
        {7, 8, 9}
    };

    IO.println(Arrays.toString(grid[0]));
    IO.println(grid[1][2]);

    for (int[] row : grid) {
        for (int value : row) {
            IO.print(value + " ");
        }
        IO.println();
    }
}

// From Groundwork, chapter 7 (ch07-arrays-and-lists), box 11.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch07_11.java
