我理解ArrayList是基于索引的数据结构,它允许你使用索引访问它的元素但是LinkedList不是基于索引的,所以为什么它有get(index)方法允许直接访问元素?
linked-list data-structures
data-structures ×1
linked-list ×1