Skip to content

Commit

Permalink
Merge pull request Snailclimb#1049 from tsbxmw/patch-2
Browse files Browse the repository at this point in the history
显示问题
  • Loading branch information
Snailclimb authored Jan 6, 2021
2 parents 30e7d3d + 23b2046 commit 69b604e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/collection/ArrayList源码+扩容机制分析.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`ArrayList` 的底层是数组队列,相当于动态数组。与 Java 中的数组相比,它的容量能动态增长。在添加大量元素前,应用程序可以使用`ensureCapacity`操作来增加 `ArrayList` 实例的容量。这可以减少递增式再分配的数量。

`ArrayList`继承于 **`AbstractList`**,实现了 **`List`**, **`RandomAccess`**, **`Cloneable`**, **`java.io.Serializable`** 这些接口。
`ArrayList`继承于 **`AbstractList`** ,实现了 **`List`**, **`RandomAccess`**, **`Cloneable`**, **`java.io.Serializable`** 这些接口。

```java

Expand Down

0 comments on commit 69b604e

Please sign in to comment.