Suggest you lose the second size
Object[][] myArray = new Object[array.size()][];
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.
