Short.reverseBytes

Returns the value obtained by reversing the order of the bytes in the two's complement representation of the specified {@code short} value.

@param i the value whose bytes are to be reversed @return the value obtained by reversing (or, equivalently, swapping) the bytes in the specified {@code short} value.

class Short
static
short
reverseBytes
(
short i
)

Meta