String 的建構子非常多元,也可以透過字元陣列去創造字串:. char[] data = {'a','b','c'};. String str = new String(data); // 利用字元陣列去初始化物件內容.
確定! 回上一頁