+ 2

What are 2d arrays in Java

Java

11th Apr 2019, 2:26 PM
Kinjalk Yadav
Kinjalk Yadav - avatar
3 Answers
+ 1
A nested array (multidimensional array). Normal array = {1,2,3} 2d: { {1,2,3} , { 4,5,6,7} } You can see, it is one array which contains two arrays inside. The two arrays have an index (0 and 1) and the numbers have indizes. arr[0][0] ... arr[0][2] arr[1][0] ... arr[1][3]
11th Apr 2019, 10:00 PM
Denise Roßberg
Denise Roßberg - avatar
11th Apr 2019, 10:01 PM
Denise Roßberg
Denise Roßberg - avatar
0
2dimension array are 2d array
14th Apr 2019, 1:24 AM
Aryan Pandey
Aryan Pandey - avatar