Collection of Java 8 streams examples (snippets) grouped by java data structures
Arrays.asList("hi", "hey", "hello")
.stream()
.findFirst()
.ifPresent(System.out::println);
Output :
hi
Contributions are welcome :) Please create a pull request.