49 无限循环
for循环
package com.fqs.test; import java.util.Scanner; public class hello { public static void main(String[] args) { //无限循环 for(;;){ System.out.print("study"); } } }
while循环
package com.fqs.test; import java.util.Scanner; public class hello { public static void main(String[] args) { //无限循环 while(true){ System.out.print("study"); } } }