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

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/02 04:37:32

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

basketball
后面的 会把前面的 football 覆盖.