java131-hashtable
作者:互联网
import java.util.Hashtable;
//hashtable
public class test70 {
public static void main(String[] args){
Hashtable ht=new Hashtable();
ht.put("k0","歌谣");
ht.put("k1","小白");
ht.put("k2","小红");
//ht.put("k3",null);//hashtable不能用null存取值
System.out.println( ht);
}
}
运行结果
标签:ht,hashtable,java131,put,null,public,Hashtable 来源: https://www.cnblogs.com/yao-655442/p/16411684.html