forked from JavaTX/JavaCompilerCore
334b56234f
Conflicts: test/bytecode/javFiles/VectorAdd.jav
20 lines
385 B
Java
20 lines
385 B
Java
import java.util.Vector;
|
|
import java.lang.Integer;
|
|
import java.lang.String;
|
|
//import java.lang.Byte;
|
|
//import java.lang.Boolean;
|
|
|
|
public class VectorAdd {
|
|
|
|
add(v1, v2) {
|
|
var ret = new Vector();
|
|
var i = 0;
|
|
var erg;
|
|
while(i < v1.size()) {
|
|
erg = v1.elementAt(i) + v2.elementAt(i);
|
|
ret.addElement(erg);
|
|
}
|
|
return ret;
|
|
}
|
|
}
|