no

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.


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


This will ensure that a single digit integer will be padded with 0.

Related

java 2289029657058981975

Post a Comment

1 comment

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

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

item