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