From 4ace3b6f9231d7613397239a2703eb6247aabd5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pl=C3=BCmicke?= Date: Wed, 26 Sep 2018 15:44:36 +0200 Subject: [PATCH] new file: ../../test/bytecode/javFiles/VectorAdd.jav --- test/bytecode/javFiles/VectorAdd.jav | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/bytecode/javFiles/VectorAdd.jav diff --git a/test/bytecode/javFiles/VectorAdd.jav b/test/bytecode/javFiles/VectorAdd.jav new file mode 100644 index 00000000..4d3eb8ac --- /dev/null +++ b/test/bytecode/javFiles/VectorAdd.jav @@ -0,0 +1,19 @@ +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; + } +}