📅  最后修改于: 2022-03-11 14:52:02.393000             🧑  作者: Mango
Function multiply = (value) -> value * 2;
Function add = (value) -> value + 3;
Function addThenMultiply = multiply.compose(add);
Integer result1 = addThenMultiply.apply(3);
System.out.println(result1);