04 2020 档案

摘要:从List<User> 中获取 age最大的对象 Optional<User> optional= list.stream().max(Comparator.comparing(User ::getAge)); User maxEndCount = optional.get(); 阅读全文
posted @ 2020-04-29 15:47 打代码的小超人 阅读(305) 评论(0) 推荐(0)