Vector.insertElementAt

Vector.insertElementAt

Class Overview | Class Members | This Package | All Packages

Syntax
public final synchronized void insertElementAt( Object obj, int index )
Parameters
obj
the component to insert.
index
where to insert the new component.
Description
Inserts the specified object as a component in this vector at the specified index. Each component in this vector with an index greater or equal to the specified index is shifted upward to have an index one greater than the value it had previously.

The index must be a value greater than or equal to 0 and less than or equal to the current size of the vector.

Exceptions
ArrayIndexOutOfBoundsException if the index was invalid.
See Also
size