Last active
December 24, 2017 16:03
-
-
Save HennIdan/28c58af3839c72e8dbedcdc852ed94c8 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 forMaxInteger() { | |
int max = Integer.MIN_VALUE; | |
for (int i = 0; i < size; i++) { | |
max = Integer.max(max, integers.get(i)); | |
} | |
return max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
size
is undeclared