package my;
public class number {
public static void main(String[] args) {
String[] aves = new String[]{
"白鹭", "丹顶鹤", "黄鹂", "鹦鹉", "乌鸦", "喜鹊", "布谷鸟", "百灵鸟", "老虎", "狮子", "斑马"
};
int index = 0;
System.out.println("我的花园里有很多鸟,种类包括:");
while (index < aves.length) {
System.out.println(aves[index++] + "");
}
}
}
效果如下: