Java Hex Calculate toHex(byte b)

Here you can find the source of toHex(byte b)

Description

to Hex

License

Open Source License

Declaration

public static final String toHex(byte b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final String toHex(byte b) {
        return "" + "0123456789ABCDEF".charAt(0xf & b >> 4) + "0123456789ABCDEF".charAt(b & 0xf);
    }/*from  w  ww  . j a  v a 2 s.c o m*/
}

Related

  1. tohex(byte b)
  2. toHex(byte b)
  3. toHex(byte b)
  4. toHex(byte b)
  5. toHex(byte b)
  6. toHex(byte b)
  7. toHex(byte b)
  8. toHex(byte b)
  9. toHex(byte b)