not sure if applicable or not, but this may spark an idea...maybe

Decimal -> hex



String[] allHex = new String[(16*16*16)-1];

String key = "0123456789ABCDEFG";