public class LoopTest {
public static void main(String[] args) {
// for (; ; ) {
// System.out.println("for无限循环");
// }
// while (true) {
// System.out.println("while无限循环");
// }
do {
System.out.println("do无限循环");
} while (true);
}
}
java 死循环(for,while,do while)
最新推荐文章于 2024-04-20 19:50:39 发布