1 <p> This method uses the toArray() method of a collection derived class, and passes
2 in a zero-length prototype array argument. It is more efficient to use
3 <code>myCollection.toArray(new Foo[myCollection.size()])</code>
4 If the array passed in is big enough to store all of the
5 elements of the collection, then it is populated and returned
6 directly. This avoids the need to create a second array
7 (by reflection) to return as the result.</p>