Mega Code Archive

 
Categories / Java Book / 005 Collection
 

0289 Vector class

The Vector class implements a growable array of objects. Constructor Summary Vector(Collection<? extends E> c) Creates a vector containing the elements of the specified collection, in the order they are returned by the collection's iterator. Vector(int initialCapacity) Creates an empty vector with the specified initial capacity and with its capacity increment equal to zero. Vector(int initialCapacity, int capacityIncrement) Creates an empty vector with the specified initial capacity and capacity increment.