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
An alternative to the heavy usage of null in Java code, with greater legibility and type safety.
null