tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Swan <anth...@crazytonys.com>
Subject Re: NumberFormatException
Date Mon, 14 Apr 2003 20:20:53 GMT
You're getting that error because empidstr is null.


Tony

Srinivasu Gandu wrote:

> When I try to convert a string into int why do I get this exception...
> java.lang.NumberFormatException: null
> My class contains
> import java.util.*
> I tried    int empid = Integer.parseInt(empidstr); and int empid =
> Integer.valueOf(empidstr).intvalue(); In both ways I am getting this error.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message