This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ?