欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

流程控制——09while循环2

程序员文章站 2022-07-14 23:36:10
...

while循环死循环

package com.study.struct;
//死循环
public class XunHuanWhile2 {
    public static void main(String[] args) {
        //死循环
        while(true){
            //等待客户端连接
            //定时检查
            //......
        }
    }
}