Java报错Syntax error on token class char expected
原创约 218 字小于 1 分钟...
expected.md
91-Java报错Syntax error on token "class", char注意
本博文仅供学术研究和交流参考,严禁将其用于商业用途。如因违规使用产生的任何法律问题,使用者需自行负责。
如图所示,报错如下:
Syntax error on token "class", char expected
Multiple markers at this line
- Syntax error on token "class", char expected
- The member type InnerStaticClass cannot be declared static; static types can only be declared in static or top
level types


原因: 类后面不应该有(),去掉即可解决报错,如图

分割线
相关信息
以上就是我关于 Java报错Syntax error on token "class", char expected 知识点的整理与总结的全部内容,另附源码
Powered by Waline v2.15.4