Collections.toArray()
Signature
Object[] toArray ( Object collection, Object ... a )
Description
Returns an array containing all of the elements in this collection in proper
sequence (from first to last element)
Parameters
Name | Type | Description |
collection | Object | The Collection object |
a | Object | The runtime type of the returned array |
Returns
Type | Description |
Object[] | An array containing all of the elements in this collection in proper sequence. If specified, the runtime type of the returned array is that of the specified array |