Created
January 15, 2021 13:45
-
-
Save gyselph/6e58f18cb2a6945dc2e7b3d8c015481c to your computer and use it in GitHub Desktop.
Java 7 to 15: Streams
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stream.of("hello", "great") | |
.map(s -> s + " world") | |
.forEach(System.out::println); | |
> hello world | |
> great world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment