I suppose you have an ArrayList of ArrayLists, then you can do this to retrieve number of “columns”:
list.get(0).size()
It means get the first ArrayList from list and get it’s size.
solved Number of column in a two dimensional ArrayList
I suppose you have an ArrayList of ArrayLists, then you can do this to retrieve number of “columns”:
list.get(0).size()
It means get the first ArrayList from list and get it’s size.
solved Number of column in a two dimensional ArrayList