There are methods Integer.toHexString() and Long.toHexString(). For some reason they didn\'t implement Short.toHexString().
Integer.toHexString()
Long.toHexString()
Short.toHexString()
What
This should also work for a short
UnicodeFormatter.charToHex((char)c);
You can download UniocdeFormatter.java here: http://docs.oracle.com/javase/tutorial/displayCode.html?code=http://docs.oracle.com/javase/tutorial/i18n/text/examples/UnicodeFormatter.java