Skip to content

Instantly share code, notes, and snippets.

@jotka
Created April 17, 2013 18:42
Show Gist options
  • Select an option

  • Save jotka/5406675 to your computer and use it in GitHub Desktop.

Select an option

Save jotka/5406675 to your computer and use it in GitHub Desktop.
@Test
public void shoudlMapAndPrint() {
List<String> nameList1 = asList("Anders", "David", "James", "Jeff", "Joe", "Erik");
nameList1.stream()
.map(c -> "Hello! " + c)
.forEach(System.out::println);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment