posted 15 years ago
Hi,
My requirement is this:-
I need to create "n" number of ArrayLists inside for loop dynamically n is based on a field value, which will also change.
Something like this:-
In the first iteration
for(int i=0;i<20;i++)
{
ArrayList firstIteration = new ArrayList();
}
and in the second iteration it should be like this...
for(int i=0;i<20;i++)
{
ArrayList SecondIteration = new ArrayList();
}
Please let me know How do I do this?
Thanks in advance,