针对如下枚举定义: public enum Season{SPRING,SUMMER,FALL,WINTER} 下列哪个正确?
A.
枚举可以创建变量,如Season s=Seanson.FALL
B.
使用switch语句时,case条件必须写case Sesson.SPRING
C.
使用for循环时,必须用for(int i=SPRING;i
D.
Season枚举类型定义中不可以添加属性和方法
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Drunken driving — sometimes called American's socially accepted form. of murder — has become a national 【C1】______ Every hour of every day about three Americans on average are killed by drunken driver...
【简答题】阅读理解。 Drunken driving-sometimes called America's socially accepted form of murder-has become a national epidemic (流行病). Every hour of every day about three Americans on average are killed by drunken d...