Skip to content

Commit 18b13cf

Browse files
修复一处拼写错误+修复一个遗漏条目
修复一处拼写错误+修复一个遗漏条目
1 parent af8023c commit 18b13cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/java/Basis/Arrays,CollectionsCommonMethods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ boolean replaceAll(List list, Object oldVal, Object newVal), 用新元素替换
142142

143143
### 同步控制
144144

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

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

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

229229
### 排序 : `sort()`
230230

0 commit comments

Comments
 (0)