Finding the max/min value in an array of primitives using Java - Stack Overflow
You can simply use the new Java 8 Streams but you have to work with int. The stream method of the utility class Arrays gives you an IntStream on which you can use the min method. You can also do max, sum, average,... The getAsInt method is used to get the...