慕学习者666
2018-05-21 17:30
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.println("three/=one==>"﹢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);
这个是正解, 要注意,如 “+=” 此类运算符中间一定是没有空格滴
我直接把你的代码放在了本地运行了一次,你的标点符号全部都是中文吧?
Java入门第一季(IDEA工具)升级版
1165172 学习 · 17581 问题
相似问题