search this site:
A test of the Collection#toArray method, comparing the performance when the target array has been preallocated to when it has not.
Collection#toArray