public class Demo {
public static void main(String[] args) {
for (int i = 0; i < 24; i++) {
for (int j = 0; j < 60; j++) {
System.out.println(i + “小时” + j +“分钟”);
}
}
}
}
for循环打印时间
最新推荐文章于 2023-07-13 11:27:34 发布
public class Demo {
public static void main(String[] args) {
for (int i = 0; i < 24; i++) {
for (int j = 0; j < 60; j++) {
System.out.println(i + “小时” + j +“分钟”);
}
}
}
}