a.ArrayList是实现了基于动态数组的数据结构,而LinkedList是基于链表的数据结构;
b.对于大数据量的随机访问get和set,ArrayList要优于LinkedList,因为LinkedList要移动指针;
c.对于需要大数据量的频繁添加(add)和删除(remove)操作时,LinkedList要比ArrayList快,因为ArrayList要移动数据。
b.对于大数据量的随机访问get和set,ArrayList要优于LinkedList,因为LinkedList要移动指针;
c.对于需要大数据量的频繁添加(add)和删除(remove)操作时,LinkedList要比ArrayList快,因为ArrayList要移动数据。