问答详情
源自:3-3 Java中的赋值运算符

我不明白啊

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

提问者:慕姐2131086 2018-04-04 22:44

个回答

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

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