Why doesn't this work? In my understanding I should remove all of the double occurent names that means if "Willi" occurs 2 times in the map i remove both of them by calling elementNachWertAusMapEntfernen which does that for me. So i only have to find out which of the entries do have double occurencies which my code should solve. But the 4th condition is still false?!