Optional的常见用法
摘要:1. public class Boy { private Girl girl; @Override public String toString() { return "Boy{" + "girl=" + girl + '}'; } public Girl getGirl() { return g
阅读全文
posted @
2022-09-12 17:20
从精通到陌生
阅读(168)
推荐(0) 编辑
Stream API的使用
摘要:测试数据: public class EmployeeData { public static List<Employee> getEmployees(){ List<Employee> list = new ArrayList<>(); list.add(new Employee(1001, "马
阅读全文
posted @
2022-09-11 18:24
从精通到陌生
阅读(72)
推荐(0) 编辑