JavaCompilerCore/resources/bytecode/javFiles/VectorAdd.jav

17 lines
283 B
Plaintext
Raw Normal View History

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;
2019-07-11 13:52:38 +00:00
}
}