●整数を16進の文字列に変換
toHexString()

--------------------------------------------------
public class toHexStringDemo {
public static void main(String args[]){

for(int i=1; i < 40; i++){
String s = Integer.toHexString(i);
System.out.println(i + " " + s );

}
}
}
--------------------------------------------------