public class HelloWorld{ public static void main(String[] args) { String hobby="慕课网"; System.out.println(hobby); }}D:\liujiahao\zuoye>javac HelloWorld.javaHelloWorld.java:1: 错误: 需要class, interface或enumpublic calss HelloWorld{ ^HelloWorld.java:2: 错误: 需要class, interface或enum public static void main(String[] args){ ^HelloWorld.java:4: 错误: 需要class, interface或enum System.out.oprintln(hobby); ^HelloWorld.java:5: 错误: 需要class, interface或enum } ^4 个错误这是什么原因?
添加回答
举报
0/150
提交
取消