Java Hex Calculate toHex(int myByte)

Here you can find the source of toHex(int myByte)

Description

to Hex

License

Open Source License

Declaration

private static char toHex(int myByte) 

Method Source Code

//package com.java2s;
//it under the terms of the GNU General Public License as published by

public class Main {
    private static final String HEX_DIGITS = "0123456789ABCDEF";

    private static char toHex(int myByte) {
        return HEX_DIGITS.charAt(myByte & 0xF);
    }//  www .  j av  a2 s  . c om
}

Related

  1. toHex(int h, int minDigit)
  2. toHex(int i)
  3. toHex(int i)
  4. toHex(int i)
  5. toHex(int i, String $default)
  6. toHex(int n)
  7. toHex(int n)
  8. toHex(int n, Boolean bigEndian)
  9. toHex(int n, int bytes)