folks, how can I add an additional row to the end of the 2D ArrayList? What is the technique for that? Or how should I approach it? I haven't written a code for that because I don't how to start it.
I have a 2D ArrayList which is
ArrayList<ArrayList<T>> myBoard = new ArrayList<ArrayList<T>>();
and would like to add an additional line to its end but do not know how to approach it. My 2D ArrayList looks like the following:
The number of rows is 6
The number of cols is 3
ABC
AAA
BAC
BEC
BEA
BAB
Could please smb help me?
public void addRowBottom(ArrayList<ArrayList<T>> myBoard){
ArrayList<T> addRow = new ArrayList<T>();
}