public static String BinToChar(String bin){
  char value[]=new char[bin.length() / 8];
  int binLength=value.length;
  for (int i=0; i < binLength; i++)   value[i]=(char)Integer.parseInt(bin.substring(8 * i,8 * i + 8),2);
  return new String(value);
}

public static String BinToChar ( String bin ) { char value [ ] = new char [ bin . length ( ) / 8 ] ; int binLength = value . length ; for ( int i = 0 ; i < binLength ; i ++ ) value [ i ] = ( char ) Integer . parseInt ( bin . substring ( 8 * i , 8 * i + 8 ) , 2 ) ; return new String ( value ) ; }
converts the specified binary string into a character string .
