forked from JavaTX/JavaCompilerCore
34 lines
572 B
Java
34 lines
572 B
Java
package de.test;
|
|
|
|
import java.util.Vector;
|
|
import java.lang.Integer;
|
|
import java.lang.Boolean;
|
|
|
|
import de.test.mathStruc;
|
|
import de.test.vectorAdd;
|
|
|
|
|
|
public class mathStrucVector {
|
|
|
|
public main() {
|
|
Vector<Integer> v1 = new Vector<Integer>();
|
|
v1.addElement(2);
|
|
v1.addElement(2);
|
|
Vector<Integer> v2 = new Vector<Integer>();
|
|
v2.addElement(3);
|
|
v2.addElement(3);
|
|
|
|
vectorAdd va = new vectorAdd();
|
|
|
|
var ms;
|
|
ms = new mathStruc<>(v1);
|
|
var ms2;
|
|
ms2 = new mathStruc<>(v2);
|
|
var ms3;
|
|
|
|
ms3 = ms.innerOp.apply(va.add).apply(ms2);
|
|
return ms3;
|
|
|
|
}
|
|
}
|