Skip to content

Commit

Permalink
add the missing t of target in arrays collections
Browse files Browse the repository at this point in the history
  • Loading branch information
spikesp committed Mar 27, 2019
1 parent 8649616 commit 79d6dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/Basis/Arrays,CollectionsCommonMethods.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int max(Collection coll)//根据元素的自然顺序,返回最大的元素。
int max(Collection coll, Comparator c)//根据定制排序,返回最大元素,排序规则由Comparatator类控制。类比int min(Collection coll, Comparator c)
void fill(List list, Object obj)//用指定的元素代替指定list中的所有元素。
int frequency(Collection c, Object o)//统计元素出现次数
int indexOfSubList(List list, List target)//统计targe在list中第一次出现的索引,找不到则返回-1,类比int lastIndexOfSubList(List source, list target).
int indexOfSubList(List list, List target)//统计target在list中第一次出现的索引,找不到则返回-1,类比int lastIndexOfSubList(List source, list target).
boolean replaceAll(List list, Object oldVal, Object newVal), 用新元素替换旧元素
```

Expand Down

0 comments on commit 79d6dba

Please sign in to comment.