Manish
asked on
Convert single digit to double digit
Hi
I want to convert single digit integer to double digit. Is there any simple method?
I want output like
0 -00
1- 01
11- 11
Thanks
Karan
I want to convert single digit integer to double digit. Is there any simple method?
I want output like
0 -00
1- 01
11- 11
Thanks
Karan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Likewise: output.printf("%02d", i);
Assuming 'output' is a PrintWriter object or such.
;JOOP!
Assuming 'output' is a PrintWriter object or such.
;JOOP!
ASKER
Thanks.
ASKER