Hi
try to use the Integer class

Integer i=new Integer(4);
String kk=i.toString();

or another way can be:
int i=4;
String kk=""+i;

Regards

RInaldo
[EMAIL PROTECTED]
-----Messaggio originale-----
Da: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]Per conto di subha
ghosh
Inviato: venerdì 30 marzo 2001 15.16
A: [EMAIL PROTECTED]
Oggetto: COnversion


Hi all,
How do we convert integer to String.

int i = 4;
String kk = toString(i);

I tried this , but it is giving error:
Wrong number of arguments in method


Thanks
subha



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

___________________________________________________________________________
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

Reply via email to