Java List T[] toArray(T[] a) implementation
From the javadocs: Like the toArray() method, this method acts as bridge between array-based and collection-based APIs. Further, this method allows precise control over the runtime type of the output array, and may, under certain circumstances, be used to save allocation costs. This means that the programmer is in control over what type of array … Read more