I want to do 2D dynamic ArrayList example:
[1][2][3]
[4][5][6]
[7][8][9]
and i used this code:
ArrayList<ArrayList<Integer>> group = new ArrayList<ArrayList<Integer>>();
group.add(new ArrayList<Integer>(1, 2, 3));
how should i initialize this arraylist?