Created
November 29, 2017 11:55
-
-
Save bryanmaina/f5158a2559909c5ffa6ad853c6e59c6e to your computer and use it in GitHub Desktop.
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
Set<String> initials = Files.lines(Paths.get("e.txt")).filter(s->!s.trim().isEmpty()).map(s->s.substring(0, 1)).collect(Collectors.toSet()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment