package com.karl; public class sixunhuanDemo { public static void main(String[] args) { //死循环3种写法 /*1.for for (;;){ System.out.println("ko"); } */ //经典写法 /* 2.while while (true){ System.out.println("koko"); } */ /*3.do-while do { System.out.println("kokoko"); }while (true); */ } }
标签:System,while,println,写法,死循环,out From: https://www.cnblogs.com/Karl-hut/p/17438004.html