Java Arena

Module 47

Two-dimensional arrays

Arrays with rows and columns. Creating an int[][] and using its cells, going through a grid with nested loops and the lengths of the grid and of a row, totals of rows and columns and the largest value, the cells around a cell and staying inside the grid, rows of different lengths, grids of Strings and of your own objects with Arrays.deepToString, and a look back at the whole of part 12. MOOC sections 12.4 and 12.5.

Steps

  1. A grid of values
  2. Going through a grid
  3. Rows, columns and totals
  4. Neighbors: the cells around a cell
  5. Rows of different lengths, and grids of objects
  6. Four in a row, and the end of part 12