static Short valueOf(String s)
Throws:
static Short valueOf(String s, int radix)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
valueOf(String s) method:
Assuming the specified String represents a short, returns a new Short object initialized to that value. Throws an exception if the String cannot be parsed as a short. The radix is assumed to be 10.
valueOf(String s, int radix) method:
Assuming the specified String represents a short, returns a new Short object initialized to that value. Throws an exception if the String cannot be parsed as a short.
Example
Short sh = Short.valueOf("9");
The valueOf() method returns the Short representation of the value 9.