How to Format and Display 2 Digit Integer in Java
String.format("%2d", 1); This will ensure that a single digit integer will be padded with 0.
https://www.czetsuyatech.com/2021/07/java-getting-started-format-integer-display.html
String.format("%2d", 1);
This will ensure that a single digit integer will be padded with 0.
1 comment
I'm appreciate your writing skill.Please keep on working hard.^^
Post a Comment