Vector.setElementAt
Class Overview | Class Members |
This Package |
All Packages
public final synchronized void setElementAt( Object obj,
int index )
Parameters
- obj
- what the component is to be set to.
- index
- the specified index.
Description
Sets the component at the specified index of this
vector to be the specified object. The previous component at that
position is discarded.
The index must be a value greater than or equal to 0
and less than the current size of the vector.
Exceptions
ArrayIndexOutOfBoundsException
if the index was invalid.
See Also
size