My question is that if I have an array like
String [] varNames=new String[numOfVariables];
for(int i=0;i<numOfVariables;i++){
varNames[i]=scan.next();
}
and I want to make a new array of integers which will have a name of entry which is at varNames[1].
for example if at the place of varNames[1], "fish" is stored then I want to assign the name which is at varNames[1] to the new array of integers i am going to make.
Like
int [] verNames[i]=new int[20];
But I don't know how can I do that.....Any ideas would be really appreciated. Thanks.