~/ learn/ java-from-zero/ cards/ Multidimensional & jagged arrays
1 of 3

Type a 2D array allocation

Type a 2D array allocation

Answer

int[][] grid = new int[3][4];

Creates 3 rows each of length 4. grid.length is 3; grid[0].length is 4.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/e5b5d7b5-0da2-43fc-a3dc-0d88be881a61/flashcard utf-8 LF