当前位置: 技术问答>java相关
在运行最简单的helloworld程序时,编译出现了这样的错误,我看不懂,请大家帮助。
来源: 互联网 发布时间:2015-07-21
本文导语: c:windowsdesktophello.java:2: cannot resolve symbol symbol c: class string location: class hello public static void main(string args[]) c:windowsdesktophello.java:4: package system does not exist system.out.println("hello"); 2 errors ...
c:windowsdesktophello.java:2: cannot resolve symbol
symbol c: class string
location: class hello
public static void main(string args[])
c:windowsdesktophello.java:4: package system does not exist
system.out.println("hello");
2 errors
symbol c: class string
location: class hello
public static void main(string args[])
c:windowsdesktophello.java:4: package system does not exist
system.out.println("hello");
2 errors
|
错了
2 改为:
System.out.println("hello");
System首字母大写
2 改为:
System.out.println("hello");
System首字母大写
|
string-〉String
string[] args和string args[]是等价的
string[] args和string args[]是等价的