How to store arrays in one array? for example I have four different arrays, I want to store them in one array int storeAllArray []and when I call, for example. storeAllArray [1], will I get this output [11,65,4,3,2,9,7]instead of individual items?
int array1 [] = {1,2,3,4,5,100,200,400};
int array2 [] = {2,6,5,7,2,5,10};
int array3 [] = {11,65,4,3,2,9,7};
int array4 [] = {111,33,22,55,77};
int storeAllArray [] = {array1,array2,array3,array2}// I want to store the entire array in an array
for (int i=0; i<storeAllArray; i++){
System.out.println(storeAllArray.get[0]);
}
Editorial: How can I get the result as follows?
System.out.println(storeAllArray [0]) --> [1,2,3,4,5,100,200,400];
System.out.println(storeAllArray [1]) --> [2,6,5,7,2,5,10];
System.out.println(storeAllArray [2]) --> [11,65,4,3,2,9,7];
System.out.println(storeAllArray [2]) --> [111,33,22,55,77];