Hello ranchers
I am currently facing a problem in displaying integers in my desired format. So please help me.
what is actually need is i want my program to print integers with zeroes padded in front of a number if it contains less than 4 digits.
i.e if num=123 then the value must be changed to 0123.
So i have used NumberFormat class and methods to achieve this and especially setMinimumIntegerDigits(4);
the following is my code.
when i run this i got the output as 123 and what i need is to automatically changed to 0123
please help me in solving out this issue guys..