Short.valueOf
Class Overview | Class Members |
This Package |
All Packages
public static Short valueOf( String s,
int radix ) throws NumberFormatException
Parameters
- s
- the String containing the integer
- radix
- the radix to be used
Description
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.
Exceptions
NumberFormatException
If the String does not
contain a parsable short.
public static Short valueOf( String s ) throws NumberFormatException
Parameters
- s
- the String containing the integer
Description
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.
Exceptions
NumberFormatException
If the String does not
contain a parsable short.