Hi there,
I have a method like the following:
Quote:
public long getAsLong(String number)
{
return new Long(number).longValue();
}
|
My problem is that I get an exception such as the following:
Quote:
java.lang.FormatException For input string: "1223242177912"
|
As you can see the string that is parsed is indeed a valid long number. Does anybody know why it results to a problem. Any ideas how to overcome it?
Thank you.