import java.util.Hashtable;
/**
from
* 时 代 J a v a - N o w J a v a . c o m
**/
public class Main {
public static void main(String[] args) {
Hashtable ht = new Hashtable();
System.out.println("Size of Hashtable : " + ht.size());
//add key value pairs to Hashtable using put method
ht.put("1","One");
ht.put("2","Two");
ht.put("3","Three");
System.out.println("Size of Hashtable after addition : " + ht.size());
Object obj = ht.remove("2");
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。