Skip to content

Commit

Permalink
修复一处拼写错误+修复一个遗漏条目
Browse files Browse the repository at this point in the history
修复一处拼写错误+修复一个遗漏条目
  • Loading branch information
fanofxiaofeng authored Apr 16, 2019
1 parent af8023c commit 18b13cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/java/Basis/Arrays,CollectionsCommonMethods.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ boolean replaceAll(List list, Object oldVal, Object newVal), 用新元素替换

### 同步控制

Collectons提供了多个`synchronizedXxx()`方法·,该方法可以将指定集合包装成线程同步的集合,从而解决多线程并发访问集合时的线程安全问题。
Collections提供了多个`synchronizedXxx()`方法·,该方法可以将指定集合包装成线程同步的集合,从而解决多线程并发访问集合时的线程安全问题。

我们知道 HashSet,TreeSet,ArrayList,LinkedList,HashMap,TreeMap 都是线程不安全的。Collections提供了多个静态方法可以把他们包装成线程同步的集合。

Expand Down Expand Up @@ -224,7 +224,7 @@ unmodifiableXxx(): 返回指定集合对象的不可变视图,此处的集合
4. 填充 : `fill()`
5. 转列表: `asList()`
6. 转字符串 : `toString()`
7.
7. 复制: `copyOf()`

### 排序 : `sort()`

Expand Down

0 comments on commit 18b13cf

Please sign in to comment.