how do i convert an integer into a string? i want to be able to get the length of the number, such as 34567 being 5 characters long. but, when i try this i get a compiler error saying that int was detected. here is my code:
[This message has been edited by Thomas Whalen (edited November 25, 2001).]
if you don't know, then ask. if you do know, then share. love is knowledge.
this is a quick fix... I haven't found (then again I haven't looked) another way of doing this... String str = "" + integer; To convert a string to an integer, use this: int i = Integer.parseInt(String);
Joined: Aug 26, 2001
okay, I got it. here is the code to get the length of an integer: