public static String hex(byte b){
  return String.format("%02x",b);
}

public static String hex ( byte b ) { return String . format ( "%02x" , b ) ; }
convert a single byte to a human - readable hex number . the number will always be two characters wide .
