複製 List 一種簡單方法是使用將集合作為其參數的構造函數: List<Plant> copy = new ArrayList<>(list);. 由於我們要在此處複製引用而不是克隆對象, ...
確定! 回上一頁