I want to make a generic list class for, let's say, storing a graph. For each node (raging from 1 to n) I keep a linked list for it's neighbors. But I don't want to make an array of lists. I want to use the generic class for making a linked list of linked lists. Roughly speaking, I want to obtain something like this: myList< myList<Integer> > Graph. How can I do it?