Java tutorial
//package com.java2s; public class Main { public static String create16Int(int strInt10) { String int16 = Integer.toHexString(strInt10); return "0x" + int16.toUpperCase(); } }