Creating Array of LinkedList
I want to create an array of LinkedList using generic class.
I tried following Code
LinkedList<Integer>  Cards=new LinkedList<Integer>[Shuffles];
It Showed Generic array creation Error.
when I changed it to
LinkedList<Integer>  Cards=new LinkedList[Shuffles];
Error Changed into Warning and I could run it in my machine.
Now problem is I am participating online competition where I have to submit code to Online Judge. They wont allow any warning. I want to create Array of Linked List without any warning,