英文:
HelloWorld in JGRASP getting error when compiled
问题
我在一台Mac上,使用最新安装的JDK的JGRASP。当我尝试运行以下代码时:
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
{
}
我收到以下错误信息:
----jGRASP exec: javac -g HelloWorld.java
HelloWorld.java:7: error: reached end of file while parsing
}
^
1 error
我对Java和JGRASP都是新手。非常感谢您的帮助。
英文:
I'm on a max and using the latest JGRASP with JDK installed. When I try to run:
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
{
}
I get this error:
----jGRASP exec: javac -g HelloWorld.java
HelloWorld.java:7: error: reached end of file while parsing
}
^
1 error
I am new to both Java and JGRASP. Brand new. Thanks in advance.
专注分享java语言的经验与见解,让所有开发者获益!
评论