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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -