Or even easier if it's coming from a database is to use the
ResultSet.getInt() method.
(*Chris*)
----- Original Message -----
From: roopa <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 26, 1999 4:26 AM
Subject: Re: Slightly off topic - String to integer conversion
> use Integer.parseInt( String str );
>
> Yogesh Agarwal wrote:
>
> > Hi All, I am relatively new to Java programming. I am working
> > with servlets and cant figure out how to convert the string data read
> > from the database to integer type. Any help will be highly
> > appreciated. Thx in advanceYogesh Agarwal
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html