java - NumberFormatException.forInputString -
can explain why numberformatexception.forinputstring this:
string: "01000000000000000000000000000001" integer.parseint(string, 10) and how can fix it, when need positive int representation of number?
thanks
the "01000000000000000000000000000001" not valid int.
int has minimum value of -2,147,483,648 , maximum value of 2,147,483,647 (inclusive).
you can convert biginteger:
biginteger myint = new biginteger(mystring);
Comments
Post a Comment