Parses the string argument as an unsigned long in the
radix specified by the second argument. An unsigned integer
maps the values usually associated with negative numbers to
positive numbers larger than MAX_VALUE.
The characters in the string must all be digits of the
specified radix (as determined by whether java.lang.Character.digit(char, int) returns a nonnegative
value), except that the first character may be an ASCII plus
sign '+' ( '\u002B'). The resulting
integer value is returned.
An exception of type NumberFormatException is
thrown if any of the following situations occurs:
null or is a string of
length zero.
java.lang.Character.MIN_RADIX or
larger than java.lang.Character.MAX_RADIX.
'+' ( '\u002B') provided that the
string is longer than length 1.
long, 264-1.
s | the String containing the unsigned integer
representation to be parsed | |
radix | the radix to be used while parsing s. |
long represented by the string
argument in the specified radix.
NumberFormatException | if the String
does not contain a parsable long. |
Diagram: Number