Java Hex Calculate toHex(int ch)

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

Description

Char value of mark

License

Open Source License

Parameter

Parameter Description
ch mark unicode number part

Return

char value

Declaration

private static char toHex(int ch) 

Method Source Code

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

public class Main {
    /**/*from www  .j  ava  2s.  c o  m*/
     * Char value of mark
     * @param ch    mark unicode number part
     * @return      char value
     */
    private static char toHex(int ch) {
        return (char) (ch < 10 ? '0' + ch : 'A' + ch - 10);
    }
}

Related

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