Simple way.
int your_integer;
String int_str = new String(your_integer);
Main Topics
Browse All Topicswhat is the best way to convert int to string in java?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
None actually. That is, Integer.toString(int) is slightly faster. String.valueof(int) looks like this:
public string valueOf(int i){
return Integer.toString(i, 10);
}
where Integer.toString(int, int) checks if 10 is greater than Character.MAX_RADIX or lower than Character.MIN_RADIX (it usually isn't ;) ), checks whether 10 equals 10 (it usually does...) and delegates to Integer.toString(int):
public String toString(int i, int radix){
if (radix < Character.MIN_RADIX || radix >Character.MAX_RADIX)
radix = 10;
/* Use the faster version */
if (radix == 10) {
return toString(i);
}
//...
}
This is taken from java/lang/String.java and java/lang/Integer.java included in the src.zip file that comes with the JDK.
Business Accounts
Answer for Membership
by: cheekycjPosted on 2002-04-02 at 06:17:54ID: 6912899
Assuming i is your int var:
Integer.toString(i);
HTH,
CJ