Skip to content

Commit

Permalink
doc: update docs/java.md (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 2, 2023
1 parent 3087afb commit a90c8e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,8 @@ try (InputStream inputStream = new ByteArrayInputStream(inputContent);
}
```

### Collections工具类
### Collections 工具类

```java
// 计算出现频率
List<Integer> list = new ArrayList<>();
Expand All @@ -872,7 +873,8 @@ list.add(3);
int frequency = Collections.frequency(list, 2); // frequency = 2
```

### Stream流
### Stream 流

```java
// 统计词频
List<Integer> list = new ArrayList<>();
Expand Down

0 comments on commit a90c8e2

Please sign in to comment.