About
Pricing
Community
Teams
Start Free Trial
Log in
andyw27
asked on
5/31/2007
How can I add a zero to int or string ?
Hello,
I read the contents of a textfield into a variable like this:
value01=new Integer(Entry.getText()).i
ntValue();
say the value entered was 200 I need to take that and turn it into 2000.
Any suggestions as to how this might be accomplished?
Thanks.
Java
5
1
Last Comment
sciuriware
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
hongjun
5/31/2007
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
hongjun
5/31/2007
simply multiply by 10 will solve it.
andyw27
5/31/2007
ASKER
Thanks for the solution.
hongjun
5/31/2007
Please accept my comment then :)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
sciuriware
5/31/2007
Or:
String value01=Entry.getText() + "0";
If you want the text of course ........
;JOOP!