It is very common for a program to manipulate data that is kept in
a list.
You have already seen how this is done using arrays.
Arrays are a fundamental feature of Java and most programming languages.
But because lists are so useful,
the Java Development Kit includes the Vector
class,
which works much like an array but has additional methods and features.
Like an array, a Vector
contains elements that are accessed using
an integer index.
However, unlike an array, the size of a Vector
will expand if needed as items are added to it.
Vector
class.Vector
constructors.addElement(), setElementAt(), insertElementAt()
removeElementAt(), firstElement(), lastElement()