Here you can find the source of decimalToHexa(final int d)
private static char decimalToHexa(final int d)
//package com.java2s; //License from project: Open Source License public class Main { private static final String HEXA_DIGITS = "0123456789abcdef"; private static char decimalToHexa(final int d) { return HEXA_DIGITS.charAt(d); }/*from ww w . j ava 2 s . co m*/ }