Here you can find the source of intToHexString(int number)
public static String intToHexString(int number) throws NumberFormatException
//package com.java2s; //License from project: Apache License public class Main { /**/*from w ww . j av a 2 s.c o m*/ * Convert integer to hex String. */ public static String intToHexString(int number) throws NumberFormatException { return Integer.toString(number, 16); } }