Map集合:该集合存储键值对。一对一对往里存,而且要保证键的唯一性
* 1.添加:
* put(K key,V value)
* putAll(Map<? extends K,? extends V> m)
* 2.删除
* clear()
* remove(Object key)
* 3.判断
* containsValue(Object value)
* containsKey(Object key)
* isEmpty()
* 4.获取
* get(Object key)
* size()
* values()
* entrySet()
* keySet() |
|