0

Can anyone explain about multiple arrays??

9th Jan 2017, 2:42 PM
Abhishek CI
Abhishek CI - avatar
4 ответов
+ 1
Do you mean nested/multi dimensional arrays?
9th Jan 2017, 2:54 PM
James Durand
James Durand - avatar
+ 1
They are just arrays of other arrays. For example, if you have a two dimensional array you basically have a table or a matrix. String[][] table = new String[][] { new String [] {"a", "b", "c"}, new String [] {"d", "e", "f"}, new String [] {"g", "h", "i"}, new String [] {"j", "k", "l"}, }; When you index the top most array you get another array. table[0] returns ["a", "b", "c"]
9th Jan 2017, 3:53 PM
James Durand
James Durand - avatar
0
multi dimensional please
9th Jan 2017, 3:25 PM
Andrew Munnings
Andrew Munnings - avatar
0
yeah multi dimensional arrays
9th Jan 2017, 3:27 PM
Abhishek CI
Abhishek CI - avatar