假如如下:
Hashtable hs1=new Hashtable()
hs1.put(“a”,“123”);
Hashtable hs2=new Hashtable()
hs2.put(“b”,“456”);我想把hs2的内容全部移到hs1里,而且hs1原有的数据仍然在里面,除了遍历hs2再put到hs1里还有什么其他好办法?
Hashtable hs1=new Hashtable()
hs1.put(“a”,“123”);
Hashtable hs2=new Hashtable()
hs2.put(“b”,“456”);我想把hs2的内容全部移到hs1里,而且hs1原有的数据仍然在里面,除了遍历hs2再put到hs1里还有什么其他好办法?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货