How can I initialize List> in Java?
List>
I know List is an interface and I can use ArrayList or Linked
List
ArrayList
Linked
You can define it as List> list = new ArrayList>();.
List> list = new ArrayList>();
Then while defining the inner List you can take care of initialising it as ArrayList.