String[] strsub0={"out","err","in","console()"};
String[] strsub1={"print","println","append","close","flush"};
i want to get array elements and i know the name of the array.but i know aray name in String
int i=0; //this i get through a loop ,so i can't code strsub0 in my code.
String arrayname="strsub"+i; //this is array name i want ,but it is a String.
//so i want get all elements inside array which name is strsub+i ; //arrayname.length not return strsub0.length but i want it.
for(int z=0;z<arrayname.length;z++){
System.out.println(arrayname[z]);
}
String[][] a = {substr0, substr1,...}; for (int i = 0; i < a.length; ++i) { /* your code */ }