Integer: toHexString(int intValue)
/* * Output: Hex is b */ public class MainClass { public static void main(String args[]) { int i = 11; System.out.println("Hex is " + Integer.toHexString(i)); } }