Skip to content

Commit 8138aa0

Browse files
committed
Fixed split value in the stream example
1 parent e94672c commit 8138aa0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ Stream
611611
```java
612612
Stream
613613
.of("H e l l o", "w o r l d !")
614-
.flatMap((p) -> Arrays.stream(p.split(",")))
614+
.flatMap((p) -> Arrays.stream(p.split(" ")))
615615
.toArray(String[]::new);//["H", "e", "l", "l", "o", "w", "o", "r", "l", "d", "!"]
616616
```
617617

0 commit comments

Comments
 (0)