// 统计各个字符串出现的次数可以这样简写 for (String s:strings){ map.put(s,map.getOrDefault(s,0)+1); }
1

相关推荐

点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务