摘要: //返回 对象集合以UsergetAge升序排序:年龄 --默认升序 userList.stream().sorted(Comparator.comparing(User::getAge)); //返回 对象集合以UsergetAge降序排序 这里写在前面 和写在后面要看清楚,弄明白 userLis 阅读全文
posted @ 2022-07-21 15:52 ToDarcy 阅读(659) 评论(0) 推荐(0) 编辑