Last active
April 4, 2017 16:27
-
-
Save HennIdan/9bf6a312027b54f484ed41f93e9d69c5 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
public int parallelStreamMaxInteger() { | |
Optional max = integers.parallelStream().reduce(Integer::max); | |
return max.get(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment