converting int to String

How can we convert from int to String?Ex:int i = 5;Then i need that 5 in String format....Message was edited by: kiran_panga
[166 byte] By [kiran_pangaa] at [2007-11-27 2:09:46]
# 1
String.valueOf(i)According to http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.htmlpublic static String valueOf(int i)Returns the string representation of the int argument.
KathyMcDonnella at 2007-7-12 2:00:38 > top of Java-index,Java Essentials,Java Programming...
# 2
You can also useInteger.toString(i)See youCamia
Camilaa at 2007-7-12 2:00:38 > top of Java-index,Java Essentials,Java Programming...