int to String conversion.
please tell me how to convert an integer type to a String. if possible, give some code?
adil_bashir
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 3
Solved Threads: 1
DavidKroukamp
Practically a Master Poster
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169
and try to be clear and consistent.
there is an int (the primitive) and there is the Integer (which is an Object).
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
no dear, i already said that i am new to the programming world and that is why i need help? hope you will understand. These problems which i posted are the confusions of my today's work on java.
adil_bashir
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 3
Solved Threads: 1
no dear, i already said that i am new to the programming world and that is why i need help? hope you will understand. These problems which i posted are the confusions of my today's work on java.
I dont believe that you do not know how to use a search engine such as google and enter the title of your thread with an added "java", if so, programming might be a little to much to chew
DavidKroukamp
Practically a Master Poster
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169
i mean int(primitive) to String?
adil_bashir
Junior Poster in Training
67 posts since Jan 2012
Reputation Points: 3
Solved Threads: 1
DavidKroukamp
Practically a Master Poster
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169
that is one of the first things you should learn. there is one thing you should learn before that, though:
checking and using the api documentation provided by Ye Olde Oracle-> click me
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
I get a 404 not found error there :)
right you are stultuske, i copied the link from my post directly and it copied "...." instead of the full links path?? Lmao :D but i fixed it now sorry
DavidKroukamp
Practically a Master Poster
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169
another way would be:
int a = 1;
String aString = String.valueOf(a);
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433