add list to list of lists java code example
Example 1: java add a list to a list
List mylist.addAll(secondList);
Example 2: how to add a list in a list java
List<SomePojo> list = new ArrayList<SomePojo>();
List<SomePojo> anotherList = new ArrayList<SomePojo>();
anotherList.add(list);