也可以使用下面的方式進行宣告: List arrayList = new ArrayList(4); 將ArrayList的預設容量設定為4。當ArrayList中的元素超過4個以後,會重新分配 ...
確定! 回上一頁