Arrays; public class ArrayList<E> { private Object[] list; ... 使用 E ,像是 add 方法必須檢查傳入的物件型態是 E , get 方法必須轉換為E型態。
確定! 回上一頁