[英]how to find the error part in java coding
I have a problem where java.29 error.我有一个 java.29 错误的问题。
can anyone help me tell where is my java error?谁能帮我告诉我我的java错误在哪里?
/MyClass.java:27: error: reached end of file while parsing
}
^
1 error 1 错误
if you look at your error and read it slowly it will start making sense如果你看看你的错误并慢慢阅读它就会开始有意义
/MyClass.java
This shows in which class the error is coming from. /MyClass.java
这显示了错误来自哪个类。
:27
This shows the line on which the error is. :27
这显示了错误所在的行。
: error: reached end of file while parsing}
this is the actual error. : error: reached end of file while parsing}
这是实际错误。
Basically what its saying is that it can't find }
on line 27 so if you have this for example, java is expecting基本上它的意思是它在第 27 行找不到
}
所以如果你有这个,例如,java 正在期待
public class MyClass{
...
}
But, yours looks something like this instead但是,你的看起来像这样
public class MyClass{
...
Go to MyClass
and on line 27, you will see what's going on.转到
MyClass
并在第 27 行,您将看到发生了什么。
This is a compilation error这是一个编译错误
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.