Java中LinkedList与ArrayList有什么区别
摘要:
一般大家都知道ArrayList和LinkedList的大致区别:1.ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。2.对于随机访问get和set,ArrayList觉得优于LinkedList,因为LinkedList要移动指针。3.对于新增和删除操作add和remove,LinedList比较占优势,因为ArrayList要移动数据。ArrayList和LinkedList是两个集合类,用于存储一系列的对象引用(references)。例如我们可以用ArrayList来存储一系列的String或者Integer。那么ArrayList和Lin.. 阅读全文
posted @ 2012-08-28 17:29
jiezzy
阅读(11471)
评论(0)
推荐(0)
浙公网安备 33010602011771号