Java---Dictionary 字典

Note:这个抽象类有点过时了,子类必须实现接口Map


Dictionary 

抽象类,key to value,key   1对多个  value

package java.util;

子类有:HashTable


包含的方法:

abstract public int size();
abstract public boolean isEmpty();
abstract public Enumeration keys();
abstract public Enumeration elements();
abstract public V get(Object key);

abstract public V put(K key, V value);
abstract public V remove(Object key);




你可能感兴趣的:(Java,数据结构)