- #1
AllenHe
- 74
- 0
I have Netbeans IDE 6.9.1 installed on my computer,and I was trying to enter the following code in a new project:
01 public class Hello
02 {
03 // 是程序的起点,所有程序由此开始运行
04 public static void main(String args[])
05 {
06 // 此语句表示向屏幕上打印"Hello World !"字符串
07 System.out.println("Hello World !");
08 }
09 }
(You can ignore the Chinese characters.Im only interested in 01,04,and 07)
And it gave me so many errors,I don't know why.The program used in the tutorial was Java2 Platform Standard Edition, Version 1.4.Is it because of different versions of Java, or because I didn't start a new project? Cause I clicked create new project, and selected Java application, and it was not empty when created.
Thanks
01 public class Hello
02 {
03 // 是程序的起点,所有程序由此开始运行
04 public static void main(String args[])
05 {
06 // 此语句表示向屏幕上打印"Hello World !"字符串
07 System.out.println("Hello World !");
08 }
09 }
(You can ignore the Chinese characters.Im only interested in 01,04,and 07)
And it gave me so many errors,I don't know why.The program used in the tutorial was Java2 Platform Standard Edition, Version 1.4.Is it because of different versions of Java, or because I didn't start a new project? Cause I clicked create new project, and selected Java application, and it was not empty when created.
Thanks