JAVA小程序。高手帮帮忙

来源:百度知道 编辑:UC知道 时间:2024/05/13 14:11:53
这个程序错在哪?
public class helloworld3{
public stattic void main(String args[]){
Systcm.out.print("hello world!");
System.out.print("hello world again!");
}
}
我编译是为什么会出现这个错误

helloworld3.java:2: <identifier> expected
public stattic void main(String args[]){
^
helloworld3.java:6: ';' expected
}
^
2 errors

public class helloworld3 {

public static void main(String args[]){
System.out.print("hello world!");
System.out.print("hello world again!");
}

}

注意:关键字 static System

你的static就写错了,还有System也写错了。