PPT Slide
- An array (list) that dynamically resizes itself to whatever size is needed.
- A partial API for Vector:
public void addElement( Object obj )
public boolean contains(Object elem)
public Object elementAt(int index)
public Object firstElement()
public int indexOf(Object elem)
public void insertElementAt(Object obj, int index)
public Object lastElement()
public int lastIndexOf(Object elem)
public void removeAllElements()
public boolean removeElement(Object obj)
public void removeElementAt(int index)
public void setElementAt(Object obj, int index)