如果需要修改,必須使用String類別的method來進行。 不是說Java語言的字串是immutable的,那為什麼下面這段程式碼是正確的? String str = "ABC"; str = "xyz";.
確定! 回上一頁