Multidimensional Arrays Flashcards

1
Q

How do you initialize a two-dimensional array?

A

Same way as single-dimensional arrays, only with extra brackets:
int[][] myArray = new int[3][3]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly