java jdk5.0中出现的新特性——增强的“for”循环
增强的“for”循环(Enhanced For loop)
For-Each循环的加入简化了集合的遍历 其語法如下 for(type element : array) { System.out.println(element).... }
增强的“for”循环(Enhanced For loop)
For-Each循环的加入简化了集合的遍历 其語法如下 for(type element : array) { System.out.println(element).... }
暂无评论。
评论功能维护中,当前仅展示历史评论。