Type mismatch: cannot convert from int to Object

Type mismatch: cannot convert from int to Object为常见的JDK版本兼容错误, 解决方法
安装jre1.5.0或以上版本,在MyEclipse设置兼容级别, 具体操作如下
“Window”-“Preferences”-“Java”-“Compiler”,将Compiler compliance level设置为5.0或以上

附:compiler翻译为“编译器”,mismatch翻译为“不匹配”

你可能感兴趣的:(jdk,Type mismatch)