Created
April 16, 2014 20:34
-
-
Save dnorton/10930147 to your computer and use it in GitHub Desktop.
Fun with Java 8 Streams
This file contains hidden or 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
Stream<String> sortedWords = Stream.of("The quick brown dog jumped".split("[\\P{L}]+")).sorted(); | |
sortedWords.forEach(System.out::println); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment