int i = 4;
String kk = "" + i;
Not very smart !
int i = 4;
String kk = (new Integer(i)).toString();
Smarter, but a bit clumsy !
Pierre-Yves
-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de
subha ghosh
Envoyé : vendredi 30 mars 2001 15:16
À : [EMAIL PROTECTED]
Objet : 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