public static String remove(String seq,char... toRemove){
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < seq.length(); i++) {
    final char ch=seq.charAt(i);
    boolean append=true;
    for (int j=0; j < toRemove.length; j++) {
      final char c=toRemove[j];
      if (ch == c) {
        append=false;
        break;
      }
    }
    if (append) {
      sb.append(ch);
    }
  }
  return sb.toString();
}

public static String remove ( String seq , char ... toRemove ) { StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < seq . length ( ) ; i ++ ) { final char ch = seq . charAt ( i ) ; boolean append = true ; for ( int j = 0 ; j < toRemove . length ; j ++ ) { final char c = toRemove [ j ] ; if ( ch == c ) { append = false ; break ; } } if ( append ) { sb . append ( ch ) ; } } return sb . toString ( ) ; }
removes several character from a string .
