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]
► Java > Multidimensional Arrays > Flashcards
How do you initialize a two-dimensional array?
Same way as single-dimensional arrays, only with extra brackets:
int[][] myArray = new int[3][3]