diff --git a/java8.md b/java8.md index 0745494..952b2c7 100644 --- a/java8.md +++ b/java8.md @@ -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", "!"] ```