121、集合的分类

Collection接口:单列集合====一个一个对象

list接口:有序、可重复的数据 —》相当于动态的数组

ArrayList、LinkedList、Vector

set接口:无序、不可重复

HashSet、LinkedHashSet、TreeSet

Map接口:双列集合:用来存储一对(key-value)一对的数据

HashMap、LinkedHashMap、TreeMap、Hashtable、Properties

猜你喜欢

转载自blog.csdn.net/weixin_43206161/article/details/112324725
121
今日推荐