Java Hex Calculate toHexChar(int i)

Here you can find the source of toHexChar(int i)

Description

to Hex Char

License

Open Source License

Declaration

private static char toHexChar(int i) 

Method Source Code

//package com.java2s;

public class Main {
    private static char toHexChar(int i) {
        if (i >> 4 != 0)
            throw new RuntimeException();
        return (char) ((i < 10) ? i + '0' : i - 10 + 'a');
    }/* ww w . j ava  2  s .co m*/
}

Related

  1. toHexChar(int b)
  2. toHexChar(int digit)
  3. toHexChar(int digitValue)
  4. toHexChar(int digitValue)
  5. toHexChar(int i)
  6. toHexChar(int i)
  7. toHexChar(int nibble)
  8. toHexChar(int paramInt)
  9. toHexChar(int value)