From 72a4c64c5c49c72cea56e077438818b37dca2f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pl=C3=BCmicke?= Date: Fri, 6 Jul 2018 10:37:59 +0200 Subject: [PATCH] modified: ../../test/bytecode/javFiles/Matrix.jav Konstruktoren eingefuegt --- test/bytecode/javFiles/Matrix.jav | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/test/bytecode/javFiles/Matrix.jav b/test/bytecode/javFiles/Matrix.jav index 64132861..9eb34edf 100644 --- a/test/bytecode/javFiles/Matrix.jav +++ b/test/bytecode/javFiles/Matrix.jav @@ -2,8 +2,23 @@ import java.util.Vector; import java.lang.Integer; import java.lang.Boolean; -public class Matrix extends Vector> { - mul(m) { +public class Matrix extends Vector> { + + Matrix () { + } + + Matrix(vv) { + Integer i; + i = 0; + while(i < vv.size()) { + this.add(vv.elementAt(i)); + i=i+1; + } + } + + + + Matrix mul(m) { var ret = new Matrix(); var i = 0; while(i < size()) {