ArrayList (Java SE 23 & JDK 23)
toArray(). Returns an array containing all of the elements in this list in proper sequence (from first to last element).Returns the hash code value for this list. Specified by: hashCode in interface Collection<E>.
toArray(). Returns an array containing all of the elements in this list in proper sequence (from first to last element).Returns the hash code value for this list. Specified by: hashCode in interface Collection<E>.
public Object[] toArray(). Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list.
public Object[] toArray(). Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list.
java.util.concurrent.CopyOnWriteArrayList<E>. Type ParameterstoArray(T[] a). Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.