随笔分类 - java8
摘要:java8的stream用户 数据准备: public class Dish { public String name; //菜的名称 public Boolean vegetaian; //是否为素 public Integer calories; //卡路里 public Type type;
阅读全文
摘要:1 Consumer 只有输入,没有输出 // #1 函数推导Consumer consumer1 = (s) -> System.out.println(s);consumer1.accept("你好");// #2 第二种写法Consumer consumer2=System.out::prin
阅读全文

浙公网安备 33010602011771号