从List 中获取 age最大的对象
Optional optional= list.stream().max(Comparator.comparing(User ::getAge)); User maxEndCount = optional.get();