Java Hex Calculate toHex(int nibble)

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

Description

to Hex

License

Open Source License

Declaration

private static char toHex(int nibble) 

Method Source Code

//package com.java2s;

public class Main {
    private static final char[] hexDigit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D',
            'E', 'F' };

    private static char toHex(int nibble) {
        return hexDigit[(nibble & 0xF)];
    }//from   w w w.  ja va  2 s .c o  m
}

Related

  1. toHex(int n)
  2. toHex(int n)
  3. toHex(int n, Boolean bigEndian)
  4. toHex(int n, int bytes)
  5. toHex(int n, int s)
  6. toHex(int num)
  7. toHex(int nybble)
  8. toHex(int r, int g, int b)
  9. toHex(int r, int g, int b)