Posted On: Feb 22, 2018
The toArray() method is used to convert Java collection into an Array. This method is defined in the java.util.Collection interface.
//definition T toArray(T a)
The above function is called with the java collection and it returns an array with the elements of the collection.
Never Miss an Articles from us.