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

我哪里写错了吗

public class HelloWorld{
    public static void main(String[] args) {
     int one = 10 ;
        int two = 20 ;
        int three = 0 ;
        three=one+two;
        System.out.println("three=one+two"==>+three);
        three+=one;
        System.out.println("three+=one"==>+three);
        three—=one;
        System.out.println("three-=one"==>+three);
        three*=one;
        System.out.println("three*=one"==>+three);
        three%=one;
        System.out.prntln("three%=one"==>+three);
    }
}
       

提问者:不学会PS誓不为人 2018-08-31 14:13

个回答

  • 冬天雪后
    2018-08-31 14:32:12
    已采纳

    ==>放在引号里面

  • 江星辰
    2018-10-26 00:31:35

    楼上说的对

  • qq_Besokuse_1
    2018-09-11 13:29:36

    一楼说的对

  • 凌晨黎明
    2018-08-31 14:36:29

    楼上说的对