Is there a way to give the name of the arraylist depending upon the input ?
ArrayList arrname=new Arraylist();
The above is the default one .
instead of 'arrname' , can i give the name during execution of the program
Scanner s=new Scanner(System.in);
System.out.println("Enter the arraylist name");
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 .