接受两个参数的函数是BiFunction: BiFunction<Integer, Integer, Integer> f3 = (x, y) -> x + y; 不接受参数的函数是Supplier: Supplier<Double> f4 = () -> Math.random(); 或相当于: Supplier<Double> f4 = Math::random;