Check out example codes for "how to create a 2d arraylist java". It will help you in understanding the concepts better.

Code Example 1

ArrayList<ArrayList<Object>> a = new ArrayList<ArrayList<Object>>();

Learn ReactJs, React Native from akashmittal.com