There are methods Integer.toHexString() and Long.toHexString(). For some reason they didn’t implement Short.toHexString().
What is the canonical method converting Short to a hex string?
It’s not possible to use Integer.toHexString() because Integer.toHexString(-33) equals ffffffdf which is not a short value.
If in your system
shortis represented as 16Bit you can also simply do the following.