Sublime Text 2 运行java 错误
就是一个简单的小程序啊。。publicclassMyFirstApp{publicstaticvoidmain(String[]args){System.out.prin...
就是一个简单的小程序啊。。
public class MyFirstApp {
public static void main (String[] args){
System.out.println("HelloWorld");
}
}
====================
File "/Users/zhaolitong/Desktop/JAVA/MyFirstApp.java", line 1
public class MyFirstApp {
^
SyntaxError: invalid syntax
[Finished in 0.2s with exit code 1] 展开
public class MyFirstApp {
public static void main (String[] args){
System.out.println("HelloWorld");
}
}
====================
File "/Users/zhaolitong/Desktop/JAVA/MyFirstApp.java", line 1
public class MyFirstApp {
^
SyntaxError: invalid syntax
[Finished in 0.2s with exit code 1] 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询