17
2020
12

for的死循环和增强的for循环

死循环:
for(;;){}
增强for循环
package com.xiao.demo;

public class ForStrong {
    public static void main(String[] args) {
        int [] numbers={10,20,30,40};
        for(int get:numbers){
            System.out.println(get );
        }
    }
}


微信扫码关注

更新实时通知

« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。