public class helloworld //helloworld作爲類名,應該和*.java文件的文件名同名
{
public static void main(String args[])
{
System.out.println("Hello World !");
}
}
否則出錯如下
public class helloworld //helloworld作爲類名,應該和*.java文件的文件名同名
{
public static void main(String args[])
{
System.out.println("Hello World !");
}
}