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