java HashMap用法

它存储的内容是键值对(key-value)映射

void                 clear()
Object               clone()
boolean              containsKey(Object key)
boolean              containsValue(Object value)
Set<Entry<K, V>>     entrySet()
V                    get(Object key)
boolean              isEmpty()
Set<K>               keySet()
V                    put(K key, V value)
void                 putAll(Map<? extends K, ? extends V> map)
V                    remove(Object key)
int                  size()
Collection<V>        values()
posted @ 2019-05-15 10:58  zqlmmd  阅读(461)  评论(0编辑  收藏  举报