how to create a 2d arraylist java

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

Also in Java: