Created
February 26, 2017 09:34
-
-
Save HennIdan/55127c124b9d571f92cc7d84cbee8cb6 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 forEachLoopMaxInteger() { | |
int max = Integer.MIN_VALUE; | |
for (Integer n: integers) { | |
max = Integer.max(max, n); | |
} | |
return max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment