JavaListtoArray

Returns an array containing all elements.

Syntax

list.toArray()