Is ArrayList <Integer> [] [] possible?
5 answers
If you want to store the list in an array, you still have to separate the declaration and initialization:
ArrayList<Integer>[][] matrix = new ArrayList[10][10]; will indicate a 2-dimensional array of ArrayList objects.
matrix[0][0] = new ArrayList<Integer>(); initializes one specific cell with a new ArrayList of integers.
0