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 ); } } }
微信扫码关注
更新实时通知
死循环: 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 ); } } }
微信扫码关注
更新实时通知