toHexString
Returns a string representation of the long argument as an unsigned integer in base 16.
The unsigned long value is the argument plus 264 if the argument is negative; otherwise, it is equal to the argument. This value is converted to a string of ASCII digits in hexadecimal (base 16) with no extra leading 0s.
The value of the argument can be recovered from the returned string s by calling Long.parseUnsignedLong.
If the unsigned magnitude is zero, it is represented by a single zero character '0' ('\u005Cu0030'); otherwise, the first character of the representation of the unsigned magnitude will not be the zero character. The following characters are used as hexadecimal digits:
`0123456789abcdef`*
These are the characters '\u005Cu0030' through '\u005Cu0039' and '\u005Cu0061' through '\u005Cu0066'. If uppercase letters are desired, the java.lang.String.toUpperCase method may be called on the result:
`Long.toHexString(n).toUpperCase()`*
Return
the string representation of the unsigned long value represented by the argument in hexadecimal (base 16).
Since
1.0.2
Parameters
a long to be converted to a string.
See also
.toUnsignedString