9 lines
153 B
Java
9 lines
153 B
Java
import java.lang.Boolean;
|
|
import java.lang.Integer;
|
|
|
|
public class Test {
|
|
fac = (x) -> {
|
|
if (x == 1) { return 1; }
|
|
return x * fac.apply(x - 1);
|
|
};
|
|
} |