ArrayList用法總結

ArrayList是實現List接口的,底層採用數組實現。 ArrayList 實現了Cloneable接口,即覆蓋了函數clone(),能被克隆。 ArrayList 實現java.io.Serializable接口,這意味着ArrayList支持序列化,能通過序列化去傳輸。 ArrayList的API // Collection中定義的API boolean add(E
相關文章
相關標籤/搜索