modified: ../../bytecode/javFiles/Faculty.jav

neue Imports hinzugefuegt
This commit is contained in:
Martin Plümicke 2019-04-21 22:31:55 +02:00
parent e086ff187e
commit d9f084cd0f

View File

@ -1,22 +1,25 @@
import java.lang.Integer; import java.lang.Integer;
import java.lang.Long;
import java.lang.Short;
public class Faculty { public class Faculty {
public fact; public fact;
Faculty() { Faculty() {
fact = (x) -> { fact = (x) -> {
if (x == 1) { if (x == 1) {
return 1; return 1;
} }
else { else {
return x * (fact.apply(x-1)); return x * (fact.apply(x-1));
} }
}; };
} }
public getFact(x) { public getFact(x) {
return fact.apply(x); return fact.apply(x);
} }
}
// m (x) { // m (x) {
// //
//// var fact = (x) -> { //// var fact = (x) -> {