package HomeWork;
public class Test26 {
/*
* 编写程序,将一年中 12 个月,建立一个枚举类型数据,并对其进行调用。
*/
public static void main(String[] args) {
for(int i = 0 ;i < Month.values().length;i++){
System.out.println("月份:"+Month.values()[i]);
}
}
public enum Month{
January ,February ,March,April,May ,June,July,August,September,
October,November,December;
}
}