課程
/后端開發
/Java
/Java入門第一季(IDEA工具)升級版
求答案
2017-09-20
源自:Java入門第一季(IDEA工具)升級版 3-3
正在回答
public class HelloWorld{
? ? public static void main(String[] args) {
? ? int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? System.out.println("three = one + two ==> " + (three = one + two));
? ? ? ? System.out.println("three += one ==> " + (three += one));
? ? ? ? System.out.println("three -= one ==> " + (three -= one));
? ? ? ? System.out.println("three *= one ==> " + (three *= one));
? ? ? ? System.out.println("three /= one ==> " + (three /= one));
? ? ? ? System.out.println("three %= one ==> " + (three %= one));
}
看了一下,就是運算符以及結果的運用,供你參考
用一年半時間做準備 提問者
舉報
0基礎萌新入門第一課,從Java環境搭建、工具使用、基礎語法開始
5 回答前輩救援!求3-8編程題答案
2 回答編程題3-8,求答案
1 回答求幫忙,下面程序問題出在哪里?
2 回答求幫忙解答謝謝
3 回答求4-4編程題答案參考
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-09-20
public class HelloWorld{
? ? public static void main(String[] args) {
? ? int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? System.out.println("three = one + two ==> " + (three = one + two));
? ? ? ? System.out.println("three += one ==> " + (three += one));
? ? ? ? System.out.println("three -= one ==> " + (three -= one));
? ? ? ? System.out.println("three *= one ==> " + (three *= one));
? ? ? ? System.out.println("three /= one ==> " + (three /= one));
? ? ? ? System.out.println("three %= one ==> " + (three %= one));
}
}
看了一下,就是運算符以及結果的運用,供你參考