Mega Code Archive

 
Categories / Java Book / 005 Collection
 

0274 Constructors shown here

ArrayList() Creates an empty list with an initial capacity of ten. ArrayList(Collection<? extends E> c) Creates a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. ArrayList(int initialCapacity) Creates an empty list with the specified initial capacity.