Collection Set HashSet Alt+Insert-->equals()andhashcode()自动生成重写 LinkedHashSet TreeSet 方式一 方式二 实际开发中以ArrayList和HashSet为主 Map集合 HashMap LinkedHashMap TreeMap