随笔分类 -  Collection

集合
集合排序
摘要:自定义排序:Comparator & Comparable Comparable 结合 TreeSet 使用 Student.java @Data @AllArgsConstructor public class Student implements Comparable<Student>{ pri 阅读全文
posted @ 2020-01-11 16:09 kongieg 阅读(148) 评论(0) 推荐(0)
Map存放不同数据或对象
摘要:import java.util.HashMap; import java.util.Iterator; import java.util.Map.Entry; public class Demo { public static void main(String[] args) { HashMap map = new HashMap(); map.... 阅读全文
posted @ 2019-05-29 23:49 kongieg 阅读(1029) 评论(0) 推荐(0)