Chapter 7 - 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]
Introduction to Java > Chapter 7 - 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]
Introduction to Java (31 decks)