I do not know how to do that. But I want to create two arrays .. one for the array class, and the other for the information that I will use for the selected class, which uses for the loop. I prefer for the loop that for each loop .. ^ _ ^ .. My question is. Is it possible to create an array in which it will store the array? eg:
private final Class<?>[] cls = {class1,class2,class3}; private final String[] myFirstArray = {array1[],array2[],array[]3}; private final String selectedarray[]; for(int i=0;i<cls.lenght();i++){ if(myArrayClassParameter == cls[i]){ selectedArray[] = myFirstArray[i]; } }
Like this?
Well, if possible, my work will be less laborious .. thanks.
source share