Check out example codes for "how to add a list in a list java". It will help you in understanding the concepts better.

Code Example 1

List<SomePojo> list = new ArrayList<SomePojo>();

List<SomePojo> anotherList = new ArrayList<SomePojo>();
anotherList.add(list);

Learn ReactJs, React Native from akashmittal.com