看板
[ java ]
討論串[問題] print char[]問題
共 13 篇文章
內容預覽:
你應該做的是去了解為甚麼書上會寫這個範例,. 當然去找找勘誤表也是該做的嘗試啦。(有些書會在網路上提供這項資訊). you can try. System.out.println("str1[]="+ new String(str1));. And you can read the chapter
(還有335個字)
內容預覽:
這是有一些型態的問題. 如:. String string = "happy";. int num = 3 + 4;. System.out.println(string + num);. System.out.println(string + 3 + 4);. 顯示:. happy7. happy
(還有483個字)
內容預覽:
※ 引述《walm20.bbs@ptt.cc (我要買車啦)》之銘言:. > 這是我看書 自己測試的. > char str1[]={'f','u','c','k',' ','y','o','u'};. > char str2[]=new char [20];. > System.out.print
(還有655個字)