toArray() Object Method : Java.util.ArrayList

   

Declaration :

Explanation :

Purpose Method returns an array containing all of the elements in this list in proper sequence
Parameters NA
Return Value Returns an array containing all of the elements in this list in sequence
Exception NA

Example

The following example shows the usage of java.util.Arraylist.toarray() method.

Output :