我是Java的新手,尝试在我的电脑上运行程序。
一个简单的“Hello World”程序调用方法时失败了。
class helloworld
{
public static void main(String[] param)
{
helloWorld();
System.exit(0);
}
public static void helloWorld();
{
System.out.println("hello world");
}
}
I get the following error:
.\helloworld.java:11: error: missing method body, or declare abstract
public static void helloworld();
^