📜  如何在java代码示例中改变向量中的值

📅  最后修改于: 2022-03-11 14:52:42.303000             🧑  作者: Mango

代码示例1
To replace an element in Java Vector, 
set() method of java. util. Vector class can be used. 
The set() method takes two parameters
-the indexes of the element which has to be replaced and the new element.
 vector.set(i,value);