JavaCompilerCore/resources/bytecode/javFiles/VectorAdd.jav
2022-12-05 17:22:35 +01:00

17 lines
283 B
Java

import java.util.Vector;
import java.lang.Integer;
public class VectorAdd {
vectorAdd(v1, v2) {
var i = 0;
v1 = new Vector<Integer>();
var erg = new Vector<>();
while (i < v1.size()) {
erg.addElement(v1.elementAt(i) + v2.elementAt(i));
i++;
}
return erg;
}
}