Parses the string argument as a signed decimal long. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' ( u002d') to indicate a negative value. The resulting long value is returned, exactly as if the argument and the radix 10 were
(java.lang.String s)
| 109 | * Note that neither L nor l is permitted to appear at the end of the string as a type indicator, as would be permitted in Java programming language source code. |
| 110 | */ |
| 111 | public static long parseLong(java.lang.String s) throws java.lang.NumberFormatException{ |
| 112 | return parseLong(s, 10); |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Parses the string argument as a signed long in the radix specified by the second argument. The characters in the string must all be digits of the specified radix (as determined by whether Character.digit returns a nonnegative value), except that the first character may be an ASCII minus sign '-' (' |