toArray method interface Collection

Collection toArray method Interface
method signature
Object [] toArray () Returns an array containing all of the elements in this collection.

T [] toArray (T [] a) an array containing all of the elements in this collection; the same runtime returned array of the type specified array type.

Please refer to: https://www.geeksforgeeks.org/linkedhashset-toarrayt-method-in-java-with-example/

Guess you like

Origin www.cnblogs.com/hglibin/p/11404415.html