Here you can find the source of toHex(int ch)
Parameter | Description |
---|---|
ch | mark unicode number part |
private static char toHex(int ch)
//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); } }