6、下面程序的运行结果是() public class HashMapTest { public static void main(String[] args) { HashMap<String, Integer> hh = new HashMap<String, Integer>(); hh.put("邯郸市",100); hh.put("石家庄市",200); hh.put("保定市",300); hh.put("张家口市",400); if(hh.containsKey("承德市")) { hh.put("承德市",100); } hh.put("石家庄市",2000); System.out.println(hh.size()+","+hh.get("承德市")+",

A.5,100,200 B.4,null,2000 C.5,null,200 D.4,100,200

时间:2023-12-31 02:02:01

相似题目