ArrayList (Java Platform SE 8 ) - Oracle Help Center
Resizable-array implementation of the List interface. Implements all optional list operations, and permits all elements, including null.
Resizable-array implementation of the List interface. Implements all optional list operations, and permits all elements, including null.
This beginner Java tutorial describes fundamentals of programming in the Java programming language. ... You have seen an example of arrays already, in the main ...
java.util.ArrayList<E>. Type Parameterspublic 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.
ArrayList(Collection). Method Details. trimToSize().toArray(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.
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.