switch case constant expression required
2016-06-04 15:13
495 查看
constant expression required
这个异常的意思必须声明为常量,常量有个特定那就是不变的,此时需要final修饰
那我们就将Constant 类中声明的静态int类型成员变量加上final就可以了
okay解决问题!!
这个异常的意思必须声明为常量,常量有个特定那就是不变的,此时需要final修饰
那我们就将Constant 类中声明的静态int类型成员变量加上final就可以了
okay解决问题!!
相关文章推荐
- hdu 2894 DeBruijin【Dfs】
- SOAPUI SSL 设置
- 【issue】listView子项不能获取焦点
- stringbuffer与stringbuilder的区别
- Builder模式
- Air Playit User Guide
- uva10706 Number Sequence
- Android UI(Layouts)-GridLayout 详解
- iOS UIView动画01
- 搭建esp8266+ardunio-IDE的开发环境
- APUE(3)---文件I/O (3)
- Android UI(Layouts)-FrameLayout 详解
- easyui学习笔记之动态创建手风琴菜单
- SQL Server 2008 R2 安装程序 Upgrade Failed due to the following Error.The error code is :-2147467259.Mes
- 基于GPUImage的实时美颜滤镜
- [JavaWeb]Servlet,Request,Response知识点补充
- UVA - 1584 Circular Sequence
- iOS 【UIKit-Interface Builder(面试)】
- windows环境下如何使用qtcreator添加一个画好的ui文件
- iOS 【UIKit-UITableViewCell的重用方式&static】