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(); var i = 0; while(i < v1.size()) { //if (i < v2.size()) { ret.addElement(v1.elementAt(i) + v2.elementAt(i)); //} } return ret; }; }