on 08-10-2007 5:51 PM
Hi All,
How do I convert Integer to String?
XIer
Hi,
the easiest way is
String test =""IntegerValue"";
If you don't like the above way then follow the below ways.
int <b>abc</b>= 90045;
String test = Integer.toString(<b>abc</b>);
String test1 = String.valueOf(<b>abc</b>);
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Xler
I am sure you have not used int to store 12.24. You have probably used a float.
In any case tring to see what the input is before you call the function and after you the function..
You can use the abstract trace function -
AbstractTrace t1;
t1 = container.getTrace();
// before u call the function
t1.addInfo("" + yourVariable);
call function
t1.addInfo(""+ yourTransformedVariable);
XIer, could you explain more of the whole situation of what you're trying to do here, I think it might give me a better understanding of what is going on.
Like where is this int coming from, and what you're actually trying to send it to.
oh, nevermind, it's answered now.
Message was edited by:
Paul Reimius Schroeder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
iVal.toString();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.