Here you can find the source of int2hex(int i)
private static String int2hex(int i)
//package com.java2s; // License: GPL. Copyright 2007 by Immanuel Scholz and others public class Main { private static String int2hex(int i) { String s = Integer.toHexString(i / 16) + Integer.toHexString(i % 16); return s.toUpperCase(); }/* www . java 2s . c om*/ }