2D Array

What Is a 2D Array? A two-dimensional array stores data in a grid of rows and columns . In Java it is really an array of arrays : each element of the outer array is itself a one-dimensional array (a row). On the AP CSA exam you only deal with rectangular 2D ar

8 lessons, each with runnable code in the browser.

  1. Declaring and Initializing 2D Arrays
  2. Row-Major Order and Dimensions
  3. Nested Loops: Summing and Counting
  4. Enhanced For Loops Over 2D Arrays
  5. Working with Rows
  6. Working with Columns
  7. Grid Algorithms: Search and Position
  8. Capstone: Transpose and Combined Algorithms

Compilearn home