Convert to array options


#1

ArrayList has three conversion methods now

toArray() toArray(T[] a) copyToArray()

What are the differences between these methods?


#2

copyToArray() is convenient, the other two are not, and are only kept for compatibility