System.Out。println("sum="+5+5);
結果爲:sum=55
System.Out。println("sum="+(5+5));
結果爲:sum=10
System.Out。println(5+5+"sum=");
結果爲:10sum=
輸出字符串與數字時的小差異
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
黑馬程序員 面向對象 static main
------- <a href="http://www.itheima.com" target="blank">android培訓</a>、<a h
wws1214
2020-06-13 01:45:48
循環結構 函數的定義
循環--------------------------------------------- 1、while與do-while d
wws1214
2020-06-13 01:45:48
C++核心準則C.164:避免隱式轉換運算符
面向对象思考
2020-04-27 10:38:09
Android開發之Intent
Elven_Shi
2020-02-23 21:49:38
Android Intent
在路上的大蜗牛
2020-02-22 12:02:16
oracle 類型轉換函數 & oracle 隱式轉換規則總結
unirong
2020-02-22 01:00:08
Intent使用相關
双鱼千殇
2020-02-20 19:14:00
SQL Server 中的數據類型隱式轉換問題
潇湘隐者
2019-08-30 20:33:13
黑馬程序員 面向對象 static main
------- <a href="http://www.itheima.com" target="blank">android培訓</a>、<a h
wws1214
2020-06-13 01:45:48
循環結構 函數的定義
循環--------------------------------------------- 1、while與do-while d
wws1214
2020-06-13 01:45:48
C++核心準則C.164:避免隱式轉換運算符
面向对象思考
2020-04-27 10:38:09
Android開發之Intent
Elven_Shi
2020-02-23 21:49:38
Android Intent
在路上的大蜗牛
2020-02-22 12:02:16