Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integer Conversion

 
Natalia Helwig
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question:
How do I easily convert an integer into a string???
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
int i = 3;
String s = String.valueOf(i);
 
Sayed Ibrahim Hashimi
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, you can also use:

Originally posted by Natalia Helwig:
Question:
How do I easily convert an integer into a string???

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic