// beware Vector's List-compatible set method with the parameters reversed:
vector.set( i, object );

// yet in the old form:
vector.setElementAt( object, i );

// get has two forms, the new List-compatible:
Object o = vector.get( i );

// or the old form:
Object o = vector.elementAt( i );

// there is no such thing as:
Object o = vector.getElementAt( i );

// similarly add has two forms: the new list-compatible:
vector.add ( o );

// or the old form:
vector.addElement( o );