为了账号安全,请及时绑定邮箱和手机立即绑定

错在哪,==》是神莫意思,为甚莫要("three=one+two==>"+three);

public class HelloWorld{

    public static void main(String[] args) {

   int one = 10 ;

        int two = 20 ;

        int three = 0 ;

        

        int three=one+two;

        System.out.println("three=one+two==》+"three);

        int three+=one;

        System.out.println("three+=one==》 +"three);

        int three-=one;

        System.out.println("three-=one==》 +"three);

        int three*=one;

        System.out.println("three*=one==》 +"three);

        int three/=one;

        System.out.println("three/=one==》 +"three);

        int three%=one;

        System.out.println("three%=one==》 +"three);

        


正在回答

3 回答

==》是为了输出语句好看,像一个箭头指向结果,你也可以直接只要输出结果System.out.println(three);


1 回复 有任何疑惑可以回复我~
#1

杰杰郭果 提问者

非常感谢!
2016-05-20 回复 有任何疑惑可以回复我~

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.println("three/=one==> "+three);

         three%=one;

}

}


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

错在哪,==》是神莫意思,为甚莫要("three=one+two==>"+three);

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信