public static String toString(final byte byteValue){
  final int tmp=byteValue << 8;
  char[] retstr=new char[]{HEX[(tmp >> 12) & 0x0F],HEX[(tmp >> 8) & 0x0F]};
  return String.valueOf(retstr);
}

public static String toString ( final byte byteValue ) { final int tmp = byteValue << 8 ; char [ ] retstr = new char [ ] { HEX [ ( tmp > > 12 ) & 0x0F ] , HEX [ ( tmp > > 8 ) & 0x0F ] } ; return String . valueOf ( retstr ) ; }
turns a byte into a hexadecimal string .
