jdk1.8 新特性之 forEach 循环遍历
1、Foreach操作List List<Integer> numbers = new ArrayList<>(); //no.1 for(Integer number : numbers){ System.out.println(number); } //no.2 for(int index=0...