public static String backQuoteChars(String string,char[] find,String[] replace){
  int index;
  StringBuilder newStr;
  int i;
  if (string == null)   return string;
  for (i=0; i < find.length; i++) {
    if (string.indexOf(find[i]) != -1) {
      newStr=new StringBuilder();
      while ((index=string.indexOf(find[i])) != -1) {
        if (index > 0)         newStr.append(string.substring(0,index));
        newStr.append(replace[i]);
        if ((index + 1) < string.length())         string=string.substring(index + 1);
 else         string="";
      }
      newStr.append(string);
      string=newStr.toString();
    }
  }
  return string;
}

public static String backQuoteChars ( String string , char [ ] find , String [ ] replace ) { int index ; StringBuilder newStr ; int i ; if ( string == null ) return string ; for ( i = 0 ; i < find . length ; i ++ ) { if ( string . indexOf ( find [ i ] ) != - 1 ) { newStr = new StringBuilder ( ) ; while ( ( index = string . indexOf ( find [ i ] ) ) != - 1 ) { if ( index > 0 ) newStr . append ( string . substring ( 0 , index ) ) ; newStr . append ( replace [ i ] ) ; if ( ( index + 1 ) < string . length ( ) ) string = string . substring ( index + 1 ) ; else string = "" ; } newStr . append ( string ) ; string = newStr . toString ( ) ; } } return string ; }
converts specified characters into the string equivalents .
