add entries from one list to another one java code example
Example: how to add a list in a list java
List<SomePojo> list = new ArrayList<SomePojo>();
List<SomePojo> anotherList = new ArrayList<SomePojo>();
anotherList.add(list);
List<SomePojo> list = new ArrayList<SomePojo>();
List<SomePojo> anotherList = new ArrayList<SomePojo>();
anotherList.add(list);