Created
February 26, 2017 09:33
-
-
Save HennIdan/03382bfebfd93fcbaec2164ab986b065 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 iteratorMaxInteger() { | |
int max = Integer.MIN_VALUE; | |
for (Iterator < Integer > it = integers.iterator(); it.hasNext();) { | |
max = Integer.max(max, it.next()); | |
} | |
return max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment