opposite of max in java code example
Example 1: java max integer
Integer.MAX_VALUE //== 2147483647, once you increment past that, you
//"wrap around" to Integer.MIN_VALUE
Example 2: max in array java
// Initializing array of integers
Integer[] num = { 2, 4, 7, 5, 9 };
// using Collections.min() to find minimum element
// using only 1 line.
int min = Collections.min(Arrays.asList(num));
// using Collections.max() to find maximum element
// using only 1 line.
int max = Collections.max(Arrays.asList(num));