[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

 

 

 

相关文章
|
7月前
|
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
81 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...解决方法汇总
1042 0
Eclipse 安装插件报错:An error occurred while collecting items to be installed session context was...解决方法汇总
|
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] 符号: 变量,解决得有点辛酸
105 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“.错误的解决方法
124 0
|
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)问题
842 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(关键字问题)
167 0
Eclipse中出现Syntax error on token "class", invalid VariableDeclarator(关键字问题)
|
Android开发
在Eclipse中执行Andorid test preject提示The connection to adb is down, and a severe error has occured.解决方法
启动android模拟器时.有时会报The connection to adb is down, and a severe error has occured.的错误.在网友说在任务管理器上把所有adb.
854 0