public static void main(String[] args) {
for (int i = 0; i < 20; i++) {
System.out.println(String.format("%02d", i));
}
}
输出如下:
public static void main(String[] args) {
for (int i = 0; i < 20; i++) {
System.out.println(String.format("%02d", i));
}
}
输出如下: