Parses the string argument as a signed decimal integer. 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 integer value is returned, exactly as if the argument and the radix 1
(java.lang.String s)
| 115 | * method. |
| 116 | */ |
| 117 | public static int parseInt(java.lang.String s) throws java.lang.NumberFormatException{ |
| 118 | return parseInt(s, 10); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Parses the string argument as a signed integer 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 |