Java tutorial
//package com.java2s; public class Main { public static String decimalIntToHexString(int decimal) { String str = "0"; try { str = Integer.toHexString(decimal); } catch (NumberFormatException e) { e.printStackTrace(); } return str; } }