Computing.Net > Forums > Programming > Convert Integer to String

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Convert Integer to String

Reply to Message Icon

Name: CNChallenger
Date: March 2, 2009 at 06:09:37 Pacific
OS: Windows Vista Home
CPU/Ram: 1.9 GHz / 2812 MB
Product: Hewlett-packard / Hp pavilion dv5 notebook pc
Subcategory: Java
Comment:

How do I convert an integer to a string in Java? For example, if I have the integer 10, I want the string to become “10.” Basically, I want to know what Java's equivalent of the itoa function in C is.

This is a challenge posting by CNChallenger.



Sponsored Link
Ads by Google

Response Number 1
Name: Jimmytherifle
Date: March 2, 2009 at 11:59:38 Pacific
Reply:

If I'm understanding you correctly, I think you're wanting the toString() method.


0
Reply to Message Icon

Related Posts

See More


Batch file Help VBA: Selection(Branching)



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Convert Integer to String

Integer to string in C++ www.computing.net/answers/programming/integer-to-string-in-c/7038.html

Converting long to a string www.computing.net/answers/programming/converting-long-to-a-string/6030.html

Converting int to char* www.computing.net/answers/programming/converting-int-to-char/10546.html