Is there a way to give the name of the arraylist depending upon the input ?
for example
ArrayList arrname=new Arraylist();
The above is the default one .
instead of 'arrname' , can i give the name during execution of the program
for example
String name;
Scanner s=new Scanner(System.in);
System.out.println("Enter the arraylist name");
name=s.next();
ArrayList ______ =new Arraylist();
what should be filled in so that i can get arrayname of my choice ??
can a arraylist name be assigned like this ??
this is my assignment
i tried searching but cant find any solution .
please help
thanks