摘要: 1. sort 对集合进行排序 在使用List时想根据List中存储对象的某一字段进行排序,那么我们要用到Collections.sort方法对list排序,用Collections.sort方法对list排序有两种方法: 第一种是list中的对象实现Comparable接口; 第二种方法是根据Co 阅读全文
posted @ 2019-07-31 11:11 逆风$飞翔 阅读(3186) 评论(0) 推荐(0) 编辑