public static String hexBytesToString(String hexString){
  StringBuilder output=new StringBuilder();
  for (int i=0; i < hexString.length(); i+=2) {
    String str=hexString.substring(i,i + 2);
    output.append((char)Integer.parseInt(str,16));
  }
  return output.toString();
}

public static String hexBytesToString ( String hexString ) { StringBuilder output = new StringBuilder ( ) ; for ( int i = 0 ; i < hexString . length ( ) ; i += 2 ) { String str = hexString . substring ( i , i + 2 ) ; output . append ( ( char ) Integer . parseInt ( str , 16 ) ) ; } return output . toString ( ) ; }
returns the ascii values of a byte string .
