public static void main(Stri,国家开放大学系统2024年国家开放大学答案"> public static void main(String[] args) {

HashMap<String, String&g答案是.size:4 zhao:true zhao:100,出自国家开放大学系统2024年国家开放大学答案">

搜题
王老师:19139051760(拨打)
题目  更新时间:2024/11/5

public class MapTest {

public static void main(String[] args) {

HashMap<String, String> map = new HashMap<>();

map.put("zhao", "100");

map.put("qian", "85");

map.put("sun", "30");

map.put("li", "99");

System.out.println("size:"+map.size());

System.out.println("zhao:"+map.containsKey("zhao"));

System.out.println("zhao:"+map.get("zhao"));

}
}
结果为: size:4 zhao:true zhao:100 程序运行的结果是 size= ( )。(单选题)
.size:4 zhao:true zhao:100
.size:4 zhao:true zhao:100
.size:4 zhao:1 zhao:100
.size:4 zhao:false zhao:zhao

王老师:19139051760(拨打)