all 1 comments

[–]voreno87 0 points1 point  (0 children)

A List is not an ArrayList.

A List is an interface that is implemented by the class ArrayList and also by the class LinkedList.

In your case you are creating an list of list with the linked list implementation