/** * Diese Klasse testet die generierte EmptyClass.class-Datei */ class Test{ public static void main(String[] args){ new EmptyClass(); new Assign(); System.out.println(new Return().method()); new MethodCall().method(); System.out.println(new FieldDeclaration().field); System.out.println(new Runnable().method().apply()); Runnable r = new Runnable().method().apply(); Test t = new Identity().op.apply(new Test()); System.out.println(t); } } class Test2{ Fun1 m() { Fun1 f = new Identity().op; return f; } public static void main(String[] args){ Matrix2 m2 = new Matrix2<>(); System.out.println(m2.op.apply((Integer x) -> x)); } }