Java 增强 for 循环

示例:

       String [] names ={"James", "Larry", "Tom", "Lacy"};
       for(String name: names) {
           System.out.println(name);
       }

 

posted @ 2020-04-29 21:48  xd_xumaomao  阅读(78)  评论(0编辑  收藏  举报