📜  在java代码示例中用0填充字符串

📅  最后修改于: 2022-03-11 14:52:08.954000             🧑  作者: Mango

代码示例1
String.format("%05d", yournumber);
//%05 means length of 5
// 25 becomes 00025