how to mutate value in vector in java

Solutions on MaxInterview for how to mutate value in vector in java by the best coders in the world

showing results for - "how to mutate value in vector in java"
Giuseppe
20 Oct 2020
1To replace an element in Java Vector, 
2set() method of java. util. Vector class can be used. 
3The set() method takes two parameters
4-the indexes of the element which has to be replaced and the new element.
5 vector.set(i,value);