Collection
Set


HashSet








Alt+Insert-->equals()andhashcode()自动生成重写
LinkedHashSet

TreeSet



方式一

方式二


实际开发中以ArrayList和HashSet为主
Map集合




HashMap







LinkedHashMap
TreeMap











Alt+Insert-->equals()andhashcode()自动生成重写




方式一

方式二


实际开发中以ArrayList和HashSet为主













645

被折叠的 条评论
为什么被折叠?