java - array inside array android -
I do not know how to do this but what I want to do is create a two array .. one for the array class And for other information that I will use for the selected class for loop. I like to loop for each loop .. ^ _ ^ .. My question is. Is it capable of creating an array in which it will also store an array? For example:
Personal Ultimate class & lt ;? & Gt; [] Cls = {class1, class2, class3}; Private last string [myfirstArray = {array1 [], array2 [], array [] 3}; Private final string selected []; For (int i = 0; i & lt; cls.lenght (); i ++) {if (myArrayClassParameter == CLS [i]) {selectedArray [] = myFirstArray [i]; Well my job would be to consume less time if it is posible .. Thanks.
Of course - you can also create arrays of arrays, arrays arrays or arrays, and so on. . All you need is to add more pairs of square brackets [] . {"Quick", "brown", "fox"}, new string [] {" Jumps "," over "," the "}, new string [] {" lazy "," dog ","! "}}; String [] selected array = first arrow [1];
Comments
Post a Comment