In Java a 2D array is an array of 1D arrays so is fairly flexible anyway in that the 1D array doesn’t have to be the same length.
To empty an list you use
list.clear()
In Java a 2D array is an array of 1D arrays so is fairly flexible anyway in that the 1D array doesn’t have to be the same length.
To empty an list you use
list.clear()