摘要: 现有需求对某个List集合进行排序,List中存放的是Person对象,按Person的年龄正序和倒序排序,先看实现代码: package test.collection; public class Person { String name; int age; public String getNa 阅读全文
posted @ 2020-07-08 00:03 一首简单的歌 阅读(284) 评论(0) 推荐(0)