Collections.toArray()

Signature

Object[] toArray ( Object collection, Object ... a )

Domain

ACTION

Description

Returns an array containing all of the elements in this collection in proper sequence (from first to last element)

Parameters

NameTypeDescription
collectionObjectThe Collection object
aObjectThe runtime type of the returned array

Returns

TypeDescription
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

Cautions

none