摘要: Java中对集合排序有两种方式 Comparable和Comparator public static <T> void sort(List<T> list); 将集合中的数据按照默认规则进行排序 (我们在自己的类里面实现Comparabl接口方法compareTo) public static < 阅读全文
posted @ 2019-11-05 23:10 何去何从gw 阅读(322) 评论(0) 推荐(0) 编辑