源代码如下所示:
public class HelloWord{ public static void main (String[] args){ System.out.println("HelloWord"); } }
错误如下图所示:
将第一行的类名,命名为文件名。或将类名与文件名相统一。