BiConsumer 可以返回两个参数
BiConsumer<String, Integer> printInfo = (name, age) -> System.out.println(name + " is " + age + " years old."); printInfo.accept("Neo", 25); // 输出: Neo is 25 years old.