add something to a list in ajva 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 list = new ArrayList();
List anotherList = new ArrayList();
anotherList.add(list);