摘要: 1、ArrayList基于数组,LinkedList基于链表2、ArrayList的get操作优于LinkedList的get,因为LinkedList要移动指针3、add和remove,LinkedList占优势,因为LinkedList只需要接链和断链,而ArrayList需要整体移动数据。 阅读全文
posted @ 2020-03-19 23:52 yamiya 阅读(360) 评论(0) 推荐(0) 编辑