How to remove duplicate values from a HashMap
问题 I don't know how can best describe my problem but here it is, I'm trying to remove the same names(values) from HashMap<String, String> map = new HashMap<String, String>(); for example if this map contain names like map.put("Vivaldi","Antonio"); map.put("Belucci", "Monica"); map.put("Gudini", "Harry"); map.put("Verdo", "Dhuzeppe"); map.put("Maracci", "Bruno"); map.put("Carleone", "Vito"); map.put("Bracco", "Luka"); map.put("Stradivari", "Antonio"); I want to remove all entries with the value