Map map = new HashMap(); map.put("first","football"); map.put("first","basketball"); 会输出什么

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/12 13:00:33
Map map = new HashMap(); map.put(

Map map = new HashMap(); map.put("first","football"); map.put("first","basketball"); 会输出什么
Map map = new HashMap(); map.put("first","football"); map.put("first","basketball"); 会输出什么

Map map = new HashMap(); map.put("first","football"); map.put("first","basketball"); 会输出什么
basketball
后面的 会把前面的 football 覆盖.