Skip to content

Instantly share code, notes, and snippets.

@HennIdan
Last active April 4, 2017 16:27
Show Gist options
  • Save HennIdan/9bf6a312027b54f484ed41f93e9d69c5 to your computer and use it in GitHub Desktop.
Save HennIdan/9bf6a312027b54f484ed41f93e9d69c5 to your computer and use it in GitHub Desktop.
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