forked from JavaTX/JavaCompilerCore
21 lines
401 B
Java
21 lines
401 B
Java
package de.test;
|
|
|
|
import java.util.Vector;
|
|
import java.lang.Integer;
|
|
import java.lang.Boolean;
|
|
|
|
|
|
public class vectorAdd {
|
|
|
|
public add = (v1, v2) -> {
|
|
var ret = new Vector<Integer>();
|
|
var i = 0;
|
|
while(i < v1.size()) {
|
|
//if (i < v2.size()) {
|
|
ret.addElement(v1.elementAt(i) + v2.elementAt(i));
|
|
//}
|
|
}
|
|
return ret;
|
|
};
|
|
}
|