Package java.lang
Class Byte

Public Method shortValue

short shortValue()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns the value of this Byte as a short.

Example

   Byte by = new Byte("10");
   short shortByte = by.shortValue();
   Logger.log("hash code: " + shortByte);

The example above returns the value in short data type and writes it to the logger.