forked from JavaTX/JavaCompilerCore
modified: resources/bytecode/javFiles/VectorAdd.jav
This commit is contained in:
parent
291fee12db
commit
9310882a28
@ -5,6 +5,7 @@ import java.lang.Integer;
|
|||||||
public class VectorAdd {
|
public class VectorAdd {
|
||||||
vectorAdd(v1, v2) {
|
vectorAdd(v1, v2) {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
v1 = new Vector<Integer>();
|
||||||
var erg = new Vector<>();
|
var erg = new Vector<>();
|
||||||
while (i < v1.size()) {
|
while (i < v1.size()) {
|
||||||
erg.addElement(v1.elementAt(i) + v2.elementAt(i));
|
erg.addElement(v1.elementAt(i) + v2.elementAt(i));
|
||||||
|
Loading…
Reference in New Issue
Block a user