21.11
java.util.Vector
THE PACKAGE JAVA.UTIL
21.11 The Class
java.util.Vector
A
Vector
, like an array, contains items that can be accessed using an integer
index. However, the size of a
Vector
 can grow and shrink as needed to accommo 
date adding and removing items after the
Vector
 has been created.
public class Vector implements Cloneable {
protected Object[] elementData;
protected int elementCount;
protected int capacityIncrement;
public Vector(int initialCapacity, int capacityIncrement);
public Vector(int initialCapacity);
public Vector();
public final String toString();
public Object clone();
public final Object elementAt(int index)
throws IndexOutOfBoundsException;
public final void setElementAt(Object obj, int index)
throws IndexOutOfBoundsException;
public final Object firstElement()
throws NoSuchElementException;
public final Object lastElement()
throws NoSuchElementException;
public final void addElement(Object obj);
public final void insertElementAt(Object obj, int index)
throws IndexOutOfBoundsException;
public final boolean removeElement(Object obj);
public final void removeElementAt(int index)
throws IndexOutOfBoundsException;
public final void removeAllElements();
public final boolean isEmpty();
public final int size();
public final void setSize(int newSize);
public final int capacity();
public final void ensureCapacity(int minCapacity);
public final void trimToSize();
public final void copyInto(Object anArray[])
throws IndexOutOfBoundsException;
public final Enumeration elements();
public final boolean contains(Object elem);
public final int indexOf(Object elem);
public final int indexOf(Object elem, int index)
throws IndexOutOfBoundsException;
public final int lastIndexOf(Object elem);
654






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved