1
1
Fork 0

Fixed split value in the stream example

This commit is contained in:
Alexander 2019-05-22 00:13:08 +03:00
parent e94672c262
commit 8138aa0250
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ Stream
```java
Stream
.of("H e l l o", "w o r l d !")
.flatMap((p) -> Arrays.stream(p.split(",")))
.flatMap((p) -> Arrays.stream(p.split(" ")))
.toArray(String[]::new);//["H", "e", "l", "l", "o", "w", "o", "r", "l", "d", "!"]
```