Here you can find the source of decimalToChar(int i)
private static char decimalToChar(int i)
//package com.java2s; public class Main { private static char decimalToChar(int i) { if (i >= 0 && i < 10) return (char) ('0' + i); else if (i >= 10 && i < 35) return (char) ('a' + i - 10); throw new IllegalArgumentException("cannot convert " + i + " to character"); }/*from w ww . j a va 2 s .c om*/ }