问答详情
源自:6-6 编程练习

帮忙看看错误,谢谢!

麻烦各位大神看看我的错误在哪儿?

/85/1677/F3eH/HelloWorld.java:1: error: class imooc is public, should be declared in a file named imooc.java
public class imooc {
      ^
1 error

提问者:weixin_慕移动4434633 2016-09-03 01:45

个回答

  • D_路飞君
    2016-09-04 20:40:44
    已采纳

    for循环的 i<=nums.length 改为   i<nums.length


  • 慕数据1841698
    2016-09-03 06:32:52

    类名和文件名要相同啊