public static void removeMapEntries(Map map,Set set){
  if ((set != null) && !set.isEmpty()) {
    for (Iterator iter=set.iterator(); iter.hasNext(); ) {
      map.remove(iter.next());
    }
  }
}

public static void removeMapEntries ( Map map , Set set ) { if ( ( set != null ) && ! set . isEmpty ( ) ) { for ( Iterator iter = set . iterator ( ) ; iter . hasNext ( ) ; ) { map . remove ( iter . next ( ) ) ; } } }
removes the mapping of which keys matches with items in a given set .
