1Function<Integer, Integer> multiply = (value) -> value * 2;
2Function<Integer, Integer> add = (value) -> value + 3;
3
4Function<Integer, Integer> addThenMultiply = multiply.compose(add);
5
6Integer result1 = addThenMultiply.apply(3);
7System.out.println(result1);
8