wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes parse int to string???help!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "parse int to string???help!!!!" Watch "parse int to string???help!!!!" New topic
Author

parse int to string???help!!!!

Jess Lim
Greenhorn

Joined: Sep 09, 2004
Posts: 2
i can parse string to integer like this:
String j;
int i = Integer.parseInt(j);

is there a way for me to parse a value of int to String again?

thank you so much for help!
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
It would be something like:



Cheers,

Gian Franco Casula


"Eppur si muove!"
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Moving to Java In General (Beginner).


Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Jess Jess,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

I'll guess that "Jess Jess" is a fictitious name.

Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Alternate means for making a String from an int include String.valueOf(int) and simply concatenating the int with a String: "" + myInt.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: parse int to string???help!!!!
 
Similar Threads
How to convert string to int ?
Index out of Bound
referencing a value in a textfield without using request.getParameter
Casting strings
Flow control