關於linkedlist和arraylist的區別

通常你們都知道ArrayList和LinkedList的大體區別:      1.ArrayList是實現了基於動態數組的數據結構,LinkedList基於鏈表的數據結構。      2.對於隨機訪問get和set,ArrayList以爲優於LinkedList,由於LinkedList要移動指針。      3.對於新增和刪除操做add和remove,LinedList比較佔優點,由於Array
相關文章
相關標籤/搜索