JavaTXCompilerInJavaTX/examples/pl_usecases/OL2.jav
2013-10-18 13:33:46 +02:00

21 lines
253 B
Java
Executable File

import java.util.Vector;
class OL2 {
Integer m(Integer x) { return x + x; }
Boolean m(Boolean x) {return x || x; }
}
class Main {
main(x) {
ol;
ol = new OL2();
y;
/* y = new Vector<Integer>(); */
y.addElement(ol.m(x));
}
}