Java Vector removeElementAt(int index) Method Example

The remove(int index) method of java.util.Vector class is used to remove the element at the specified position in the Vector. Shifts any subsequent elements to the left (subtracts one from their indices). Similarly removeElementAt(int index) method also removes the element at the specified index. Each component in this vector with an index greater or equal to the specified index is shifted downward to have an index one smaller than the value it had previously.
[Read more…]