Adding zero to a single digit number

后端 未结 0 940
南笙
南笙 2020-11-29 00:57

I\'ve tried this, but it does not work

for (int i=0; i<=24; i++) {
    System.out.println(String.format("%01d", i));
}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题