JAVA 明白人来 1!!

来源:百度知道 编辑:UC知道 时间:2024/06/10 23:39:48
给个 死循环的 编码!

for(;;) {
System.out.println("死循环了");
}

for(;;);
while(true);

while(1==1){
System.out.print("01 ");
}

while(true){
....
}

代码:
public class 死循环
{public static void main(String args[])
{for(;;)
{
System.out.println("你个笨蛋,现在知道什么事死循环了吧,ALT+F4去吧!~");
}
}
}

保存为 死循环.java 嘿嘿