在LinkedList中为什么迭代比索引访问List更快 Why would iterating over a List be faster than indexing through it?在linked list中,所有的元素都指向下一个元素如果要访问item3,你要从head开始直到item3,因为你不能直接指向item3所以,如果我们打印所有元素的值,如果我们这样写