public static String removeAll(String str,String[] patterns){
  for (  String pattern : patterns)   str=str.replace(pattern,"");
  return str;
}

public static String removeAll ( String str , String [ ] patterns ) { for ( String pattern : patterns ) str = str . replace ( pattern , "" ) ; return str ; }
removes all occurrences of each pattern in str
