Results 1 to 2 of 2
Thread: Add zeroes to int
- 03-01-2011, 04:09 PM #1Member
- Join Date
- Feb 2011
- Rep Power
Add zeroes to int
I have an int value Extension.It should be 4 diguts long always.Even if the data via the procedure comes 45 .It should treat it as 0045.
I cannot convert it to string as my setter method is taking int as an argument.
I get the value of extension from database as
This extension should add zeroes if it is not 4 digits.
Please help I am stuck up.
There's nothing in this question that deals with advanced Java. Since it is a multiposted question, I'm closing it and will fold the answers in the original poster's other thread. Original poster, please do not multipost questions.
- By pink123 in forum New To JavaReplies: 11Last Post: 03-01-2011, 07:18 PM
- By SteroidalPsycho in forum New To JavaReplies: 6Last Post: 04-14-2010, 08:55 AM
- By nwboy74 in forum New To JavaReplies: 5Last Post: 02-25-2010, 07:56 AM