That way each individual member ArrayList can set its own size. Remember there is no such thing as a multidimensional array in Java, only arrays of arrays. I don't think you need the Object cast, but I am not sure.
Otherwise it looks very good to me.
Joined: Oct 13, 2005
Note that the ArrayList class is generic (since Java 5), so it is worth comparing its details and the return type of the toArray() method in Java 1.4.2 and Java 6.
Joined: Aug 11, 2007
Hello and thank you for answers, Now i would like to have my array of array converted back to an arraylist of arraylist. What is the right way of doing it ?