[eclipse]Syntax error on token ";",{ expected after this token

简介: Syntax error on token ";",{ expected after this token   提示语法错误       根据eclipse提示,在“;”之后加上“{”,果然没有提示错误。

Syntax error on token ";",{ expected after this token

 

提示语法错误

 

 

 

根据eclipse提示,在“;”之后加上“{”,果然没有提示错误。

 

 

实际问题出在该语句前多了一个“}”,提前终结了类作用域,迷惑了eclipse

 

 

 

相关文章
|
1月前
|
Android开发
双击eclipse提示an error has occurred See the log file E:\javatool\eclipse-mars-2\configuration\156991769
双击eclipse提示an error has occurred See the log file E:\javatool\eclipse-mars-2\configuration\156991769
37 1
|
IDE Java 程序员
Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总
Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总
830 0
Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总
|
10月前
|
Java Android开发 Windows
成功解决eclipse启动报错 Error:Could not create the Java Virtual Machine Error:A fatal exception has occurred
成功解决eclipse启动报错 Error:Could not create the Java Virtual Machine Error:A fatal exception has occurred
|
Java Maven Android开发
eclipse 安装maven 同时、解决自带的maven无法读取本地架包的问题、解决:找不到符号 [ERROR] 符号: 变量
1、安装在参考别人的帖子的,直接看就行了 2、解决 找不到符号 [ERROR] 符号: 变量,解决得有点辛酸
69 0
eclipse 安装maven 同时、解决自带的maven无法读取本地架包的问题、解决:找不到符号 [ERROR]   符号:   变量
|
Java Android开发 Windows
Eclipse启动时发生An internal error occurred during: “Initializing Java Tooling“.错误的解决方法
Eclipse启动时发生An internal error occurred during: “Initializing Java Tooling“.错误的解决方法
|
Java Android开发
Eclipse打不开,出现an error has occured see the log file(日志中出现!MESSAGE FrameworkEvent ERROR !STACK 0)问题
Eclipse打不开,出现an error has occured see the log file(日志中出现!MESSAGE FrameworkEvent ERROR !STACK 0)问题
701 0
Eclipse打不开,出现an error has occured see the log file(日志中出现!MESSAGE FrameworkEvent ERROR !STACK 0)问题
|
Java 数据库 Android开发
Eclipse中出现Syntax error on token "class", invalid VariableDeclarator(关键字问题)
Eclipse中出现Syntax error on token "class", invalid VariableDeclarator(关键字问题)
125 0
Eclipse中出现Syntax error on token "class", invalid VariableDeclarator(关键字问题)
|
Java Android开发
如何处理Eclipse错误消息 The declared package does not match the expected package
如何处理Eclipse错误消息 The declared package does not match the expected package
232 0