Skip to content

Instantly share code, notes, and snippets.

@gyselph
Created January 15, 2021 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gyselph/6e58f18cb2a6945dc2e7b3d8c015481c to your computer and use it in GitHub Desktop.
Save gyselph/6e58f18cb2a6945dc2e7b3d8c015481c to your computer and use it in GitHub Desktop.
Java 7 to 15: Streams
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