嵌套循环
for(){
for(){
}
}
public class DemoLoopHourAndMinute {
public static void main(String[] args) {
for (int hour =0; hour< 23; hour++) {
for(int minute = 0; minute<60; minute++) {
System.out.println(hour+"点"+minute+"分");
}
}
}
}