niexinlei

1.ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。 
2.对于随机访问get和set,ArrayList觉得优于LinkedList,因为LinkedList要移动指针。 
3.对于新增和删除操作add和remove,LinedList比较占优势,因为ArrayList要移动数据。

分类:

技术点:

相关文章:

  • 2021-09-14
  • 2021-12-30
  • 2022-01-29
猜你喜欢
  • 2021-05-12
  • 2021-10-22
  • 2021-12-14
  • 2021-08-26
  • 2021-06-28
  • 2021-11-01
  • 2021-05-01
相关资源
相似解决方案