Java Vector removeRange(int fromIndex,int toIndex) Method Example

The remove(int index)  and removeElementAt(int index) method of java.util.Vector class 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 whereas removeRange(int fromIndex,int toIndex) method removes from the vector all of the elements whose index is between fromIndex inclusive and toIndex exclusive
[Read more…]