1、while循环基础
附上while循环代码:
public class Demo15 {
public static void main(String[] args) {
int a=1;
while (a<=10000){
System.out.println("第"+a+"遍写好好学习,天天向上!");
a++;
}
while(条件判断){
//代码
条件改变
}
2、do-while:
3、for: