16 lines
240 B
Plaintext
16 lines
240 B
Plaintext
|
import java.util.Vector;
|
||
|
import java.lang.Integer;
|
||
|
|
||
|
|
||
|
public class VectorConstAdd {
|
||
|
vectorAdd(v1) {
|
||
|
var i = 0;
|
||
|
var erg = new Vector<>();
|
||
|
while (i < v1.size()) {
|
||
|
erg.addElement(v1.elementAt(i) + 1);
|
||
|
i++;
|
||
|
}
|
||
|
return erg;
|
||
|
}
|
||
|
}
|