Java 8 Stream class provides methods min() and max() for finding minimum and maximum values in a stream. Java 8 also added a static method comparing() to the Comparator class that lets us build a comparator using a sort key. Lets see some examples of Stream min() and max() functions with the Comparator.comparing() method. […]