Algorithms - Max value code example
Example: Algorithms - Max value
public int max(List<Integer> numbers) {
int max = Integer.MIN_VALUE;
for (Integer n: numbers) {
if (n > max) {
max = n;
}
}
return max;
}