package methodref.start; import java.util.function.BinaryOperator; public class MethodRefStartV1 { public static void main(String[] args) { BinaryOperator add1 = (x,y) -> x+y; BinaryOperator add2 = (x,y) -> x+y; Integer result1 = add1.apply(1,2); System.out.println("result1 = " + result1); Integer result2 = add2.apply(3,4); System.out.println("result2 = " + result2); } }