Java Vector removeElement(Object obj) Method Example

The remove(Object o) method of java.util.Vector class will remove the first occurrence of the element from the vector if it is present similarly removeElement(Object obj) method also removes the first occurrence of the specified object in the vector,  each other element in the vector with an index greater or equal to the object’s index is shifted downward to have an index one smaller than the value it had previously.

[Read more…]