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.