The list of methods to do Parse Int are organized into topic(s).
int
parseInt(char[] strs, int beginindex, int endindex) parse Int
int result = 0;
int b = 1;
for (int i = endindex - 1; i >= beginindex; i--) {
if (strs[i] < 48 || strs[i] > 57) {
throw new ParseException("Parse error,can't parse char to int . ", 0);
result = result + (strs[i] - 48) * b;
b *= 10;
...
long
parseInt(String src, Locale loc) parse Int
if (loc == null) {
loc = Locale.getDefault();
NumberFormat nf = NumberFormat.getNumberInstance(loc);
nf.setParseIntegerOnly(true);
return nf.parse(src).longValue();
int
parseInt(String value) Parse a string containing an integer with locale specific formatting.
return Integer.parseInt(parsePrepare(value));
Integer
parseInteger(String text) Returns
text converted to an integer value or throws an exception.
int def = 0;
if (text == null)
return def;
def = nf.parse(text).intValue();
return def;