dynamic variable name generation
Hi people,
Is there any way of generating variable names dynamically in java in a loop? i.e.
for(int i = 0; i<arrayLength; i++) {
ArrayX.add(position, object)
X++
}
Where X is 0,1,2...etc. so i would have Array1 with something in it, Array2 with something in it, Array3 and so on.
This is just a simple example but I've basically got an initial array of URL objects and then I want to call my getURL method on each link in my inital array and store the links associated to each initial URL in a different Array.
Hope it makes sense, and i hope someone can help!
Thanks in advance.>

