readthefuckingmanual.net

[SOLVED] java.lang.NumberFormatException: For input string:

Error added: 2011-03-25T09:56:57Z

0 people waiting for the answer...

1 answers found.

Answer 1985 (0.0% helpful)

The string used to invoke the conversion is not a valid string for the kind of conversion requested.  For example converting "1333133507869" to an integer will fail since there are too many digits to convert to an integer.
int in1 = Integer.parseInt("1333133507869");
A Java integer has a range of -2147483648 to 2147483647.

Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: