请教关于JDK1.4和ENUM的问题
项目使用的是JDK1.4版本,在xlsx2csv的时候代码
enum xssfDataType {
BOOL, ERROR, FORMULA, INLINESTR, SSTINDEX, NUMBER,
}
错误提示为
- 'enum' should not be used as an identifier, since it is a reserved keyword from source level 1.5 on
请问有没有方法可以在JDK1.4中使用enum枚举。谢谢!
------解决方案--------------------
class XssfDataType{
static final int BOOL = 0;
static final int ERROR = 1;
static final int FORMULA = 2;
static final int INLINESTR = 3;
static final int SSTINDEX = 4;
static final int NUMBER= 5;
}