(String[] args)
| 3 | public class Function { |
| 4 | |
| 5 | public static void main(String[] args) { |
| 6 | BinaryOperator<Long> functionAdd = (x, y) -> x + y; |
| 7 | Long result = functionAdd.apply(1L, 2L); |
| 8 | System.out.println(result); |
| 9 | |
| 10 | BinaryOperator<Long> function = (Long x, Long y) -> x + y; |
| 11 | Long result2 = function.apply(1L, 2L); |
| 12 | System.out.println(result2); |
| 13 | } |
| 14 | |
| 15 | } |