Skip to content

Commit ad8d433

Browse files
authored
修改错别字
1 parent ec28415 commit ad8d433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Java相关/ArrayList-Grow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ public class EnsureCapacityTest {
340340

341341
```
342342
使用ensureCapacity方法前:4637
343-
使用ensureCapacity方法前:241
343+
使用ensureCapacity方法后:241
344344
345345
```
346346

347-
通过运行结果,我们可以很明显的看出向 ArrayList 添加大量元素之前最好先使用`ensureCapacity` 方法,以减少增量从新分配的次数
347+
通过运行结果,我们可以很明显的看出向 ArrayList 添加大量元素之前最好先使用`ensureCapacity` 方法,以减少增量从新分配的次数

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy