Update Java 容器.md

这这这没有因果关系啊:实现了 RandomAccess 接口,因此支持随机访问。

而且应该是 快速随机访问。
Marker interface used by <tt>List</tt> implementations to indicate that
 * they support fast (generally constant time) random access.  The primary
 * purpose of this interface is to allow generic algorithms to alter their
 * behavior to provide good performance when applied to either random or
 * sequential access lists.
This commit is contained in:
Silverados 2019-03-26 23:30:44 +08:00 committed by GitHub
parent f2e3280778
commit 89f95ac293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ List list = Arrays.asList(1, 2, 3);
### 1. 概览
实现了 RandomAccess 接口,因此支持随机访问。这是理所当然的,因为 ArrayList 是基于数组实现的
因为 ArrayList 是基于数组实现的所以支持快速随机访问。RandomAccess接口标识着该类支持快速随机访问
```java
public class ArrayList<E> extends AbstractList<E>