50,542
社区成员
发帖
与我相关
我的任务
分享
// 通过value获取key
private static String getMapKeyByValue(Map<String, String> map, String value) {
for (String key : map.keySet()) {
if (map.get(key).equals(value))
return key;
}
return null;
}