JAVA语法——使用while循环语句与自增运算符循环遍历数组
package 使用while循环语句与自增运算符循环遍历数组; public class 使用while循环语句与自增运算符循环遍历数组 { public static void main(String[] args) { // TODO Auto-generated method stub String []aves = new String[] {"白鹭","黄莺","鹦鹉","乌鸦","喜鹊","布谷鸟","斑鸠","百灵鸟"}; int index = 0; System.out.println("我的花园里有很多鸟,大约包括"); while(index < aves.length) System.out.println(aves[index++]); } }