java根据value获取Map对象的key
Map<String, String> map= new HashMap<String,String>(); for(Map.Entry<String, String> entry : map.entrySet()){
if(entry.getValue().equals("符合条件")){ String key = entry.getKey(); } }
Map<String, String> map= new HashMap<String,String>(); for(Map.Entry<String, String> entry : map.entrySet()){
if(entry.getValue().equals("符合条件")){ String key = entry.getKey(); } }