aquarius6913 該用戶已被刪除 | 若瀏覽伊莉的時侯發生問題或不正常情況,請使用Internet Explorer(I.E)。 我看不出來哪裡有錯?
這程式碼沒啥問題- //1. 宣告字串x = "Apple"
- String x = "Apple";
- //2. 宣告字串y = x, 所以y = "Apple"
- String y = x;
- //3. 給值x = x + " and Banana", 所以 x = "Apple ane Banana"
- x += " and Banana";
- //4. 印出y並換行, y = "Apple"
- Console.WriteLine(y)
複製代碼 很淺顯易懂
字串y在宣告時候就給值了
之後都沒變過... |
|