我不明白啊

来源:3-3 Java中的赋值运算符

慕姐2131086

2018-04-04 22:44

HelloWorld.java:8: error: ';' expected
        int three+=one;
                 ^
HelloWorld.java:8: error: not a statement
        int three+=one;
                   ^
HelloWorld.java:10: error: ';' expected
        int three-=one;
                 ^
HelloWorld.java:10: error: not a statement
        int three-=one;
                   ^
HelloWorld.java:12: error: ';' expected
        int three*=one;
                 ^
HelloWorld.java:12: error: not a statement
        int three*=one;
                   ^
HelloWorld.java:14: error: ';' expected
        int three/=one;
                 ^
HelloWorld.java:14: error: not a statement
        int three/=one;
                   ^
HelloWorld.java:16: error: ';' expected
        int three%=one;
                 ^
HelloWorld.java:16: error: not a statement
        int three%=one;
                   ^
10 errors

写回答 关注

1回答

  • 慕婉清0083077
    2018-04-04 22:52:43

    逗号错了,应该用英文版的 逗号

Java入门第一季(IDEA工具)升级版

0基础萌新入门第一课,从Java环境搭建、工具使用、基础语法开始

1165512 学习 · 17586 问题

查看课程

相似问题