Is there a way by which the name of an arraylist can be assigned a name stored in a variable. The requirement is like i need to run a loop in which i need to create an arraylist whose name will be the value of the variable which stores the loop count.
Share
I don’t think that might be possible. What you might want to do is create a Map whose key would be name that you’re referring to and the value would be an ArrayList object