Applying the Java Consumer Functional Interface with the forEach() Method

Описание к видео Applying the Java Consumer Functional Interface with the forEach() Method

This video shows how a modern Java Consumer interface can be used with the forEach() method to print out the values in a list by binding the System.out.println() method to the forEach() Consumer parameter. It also shows how to sort a List in ascending and descending order using a Comparator and a Function functional interface.

All the code shown in this example is available in open-source form from https://github.com/douglascraigschmid....

Комментарии

Информация по комментариям в разработке