how to add elements to list<string> list 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);