1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-25 02:27:10 +08:00

更改错别字

/docs/java/What's New in JDK8/Java8Tutorial.md->Map(映射)->“讲”改为“将”
This commit is contained in:
RyzeZhao 2019-09-30 09:49:09 +08:00 committed by GitHub
parent 294776d04f
commit 8c134e8d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,7 +494,7 @@ forEach 是为 Lambda 而设计的,保持了最紧凑的风格。而且 Lambda
中间操作 map 会将元素根据指定的 Function 接口来依次将元素转成另外的对象。
下面的示例展示了将字符串转换为大写字符串。你也可以通过map来对象转换成其他类型map返回的Stream类型是根据你map传递进去的函数的返回值决定的。
下面的示例展示了将字符串转换为大写字符串。你也可以通过map来对象转换成其他类型map返回的Stream类型是根据你map传递进去的函数的返回值决定的。
```java
// 测试 Map 操作