亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

請問==>符號是什么意思,我的代碼出來的結果為何通過不了呢?

public class HelloWorld{

? ? public static void main(String[] args) {

? ? int one = 10 ;

? ? ? ? int two = 20 ;

? ? ? ? int three = 0 ;

? ? ? ? int three1 = one + two ;

? ? ? ? ? ? System.out.println("three=one+two==>"+three1) ;

? ? ? ? int three2 += one ;

? ? ? ? ? ? System.out.println("three+=one==>"+three2) ;

? ? ? ? int three3 -= one ;

? ? ? ? ? ? System.out.println("three-=one==>"+three3) ;

? ? ? ? int three4 *= one ;

? ? ? ? ? ? System.out.println("three*=one==>"+three4) ;

? ? ? ? int three5 /= one ;

? ? ? ? ? ? System.out.println("three/=one==>"+three5) ;

? ? ? ? int three6 %= one ;

? ? ? ? ? ? System.out.println("three%=one==>"+three6 ) ;

? ? ? ??

}

}


正在回答

1 回答

“==>”這個符號沒有意義,只是自己隨便一個輔助箭頭,http://img1.sycdn.imooc.com//5e81ccb9000149e405490413.jpg

你可以這樣寫只輸出一個three變量,每一行按three += one; System.out.println(three);這樣的形式就可以了


1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

請問==>符號是什么意思,我的代碼出來的結果為何通過不了呢?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號