当前位置: 技术问答>java相关
Hello world失败.........
来源: 互联网 发布时间:2015-04-02
本文导语: hello.java ------------------------------------------- public class hello { public static void main(string[] args) { system.out.println("Hello!~"); } } ------------------------------------------- C:jdk1.3.1_02study>javac hello.java hello.java:3: cannot resolve symbol sym...
hello.java
-------------------------------------------
public class hello
{
public static void main(string[] args)
{
system.out.println("Hello!~");
}
}
-------------------------------------------
C:jdk1.3.1_02study>javac hello.java
hello.java:3: cannot resolve symbol
symbol : class string
location: class hello
public static void main(string[] args)
^
hello.java:5: cannot resolve symbol
symbol : class out
location: package system
system.out.println("Hello!~");
^
2 errors
-------------------------------------------
public class hello
{
public static void main(string[] args)
{
system.out.println("Hello!~");
}
}
-------------------------------------------
C:jdk1.3.1_02study>javac hello.java
hello.java:3: cannot resolve symbol
symbol : class string
location: class hello
public static void main(string[] args)
^
hello.java:5: cannot resolve symbol
symbol : class out
location: package system
system.out.println("Hello!~");
^
2 errors
|
String,System 首字母要大写