public static void removeTheFirstNameDuplicates(HashMap<String,String>map){
HashMap<String, String> copy1 = new HashMap<String, String>(map);
HashMap<String, String> copy2 = new HashMap<String, String>(map);
for (Map.Entry<String, String> pair1: copy1.entrySet())
{
int count = 0;
for (Map.Entry<String, String> pair2: copy2.entrySet()) {
if (pair1.getValue().equals(pair2.getValue())) {
count++;
}
}
if (count > 1) {
removeItemFromMapByValue(map, pair1.getValue());
}
}
}