Here you can find the source of convertIntToHex(int i)
public static final String convertIntToHex(int i)
//package com.java2s; //License from project: Open Source License public class Main { public static final String convertIntToHex(int i) { String rtrn = Integer.toHexString(i); return rtrn.length() == 1 ? "0" + rtrn : rtrn; }/*from www . ja v a2 s. c o m*/ }