Skip to content

Instantly share code, notes, and snippets.

@bryanmaina
Created November 29, 2017 11:55
Show Gist options
  • Save bryanmaina/f5158a2559909c5ffa6ad853c6e59c6e to your computer and use it in GitHub Desktop.
Save bryanmaina/f5158a2559909c5ffa6ad853c6e59c6e to your computer and use it in GitHub Desktop.
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