2D arrays
A 2D array is an array of rows, each row an array, so grid[r][c] is row r and column c, grid.length counts the rows and grid[0].length the columns.
From AP Computer Science A.
A 2D array is an array of rows, each row an array, so grid[r][c] is row r and column c, grid.length counts the rows and grid[0].length the columns.
From AP Computer Science A.