How to format the display of an integer to display 2 digits


String.format("%2d", 1);


This will ensure that a single digit integer will be padded with 0.
How to format the display of an integer to display 2 digits How to format the display of an integer to display 2 digits Reviewed by czetsuya on Thursday, October 15, 2009 Rating: 5

1 comment:

酒店經紀ㄚ君姐姐 said...

I'm appreciate your writing skill.Please keep on working hard.^^

Powered by Blogger.