Java Hex Calculate toHex(int ch)

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

Description

to Hex

License

Open Source License

Declaration

private static char toHex(int ch) 

Method Source Code

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

public class Main {
    private static char toHex(int ch) {
        return (char) (ch < 10 ? '0' + ch : 'A' + ch - 10);
    }/*w  w  w  . ja  v  a2 s .  c  o  m*/
}

Related

  1. toHex(final char a, final int halfbyte)
  2. toHex(final char[] dest, int destPos, final byte[] src, final int srcStart, final int srcLength)
  3. toHex(final int i)
  4. toHex(final int value)
  5. toHex(final String input)
  6. toHex(int ch)
  7. toHex(int color)
  8. toHex(int decimalDigit)
  9. toHex(int h, int minDigit)