8.循环语句

while循环


image


image


image


image


image


image


image


image


image



image


break

image


continue

image


image


image

for循环增强

 //增强版for循环for(接收数组类型  变量名:数组名)
        for (int[] ints : array1) {
            for (int anInt : ints) {
                System.out.print(anInt+"\t");
            }
            System.out.println();
        }
posted @ 2022-04-18 21:58  王小瘦的园子  阅读(22)  评论(0编辑  收藏  举报