HashMap和HashSet HashSet是在HashMap上套了一层,只设置key,val设为默认值 LinkedHashMap和HashMap 通过双向链表维护了节点之间的顺序,不仅要维护map还要维护节点之间的双向链表 LinkedHashSet和LinkedHashMap的区别 同HashSet和HashMap的区别