Here you can find the source of toHexDigit(int i)
private static char toHexDigit(int i)
//package com.java2s; /* $This file is distributed under the terms of the license in /doc/license.txt$ */ public class Main { /**/*from w w w . ja va 2 s .com*/ * Return the correct hex character for this integer value. */ private static char toHexDigit(int i) { return "0123456789abcdef".charAt(i); } }