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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -