[ad_1]
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.
[ad_2]
solved Number of column in a two dimensional ArrayList