Functions - Lambda Expressions In Java 8: Tutorial 5

preview_player
Показать описание
This video extends the filtering and mapping tutorials. I go over using another functional interface, the Function. The examples go over how to Map and Filter using a Function.

Thanks for watching!!!! Comment, like, and subscribe

My Links:

These tutorials take a lot of time out of my day. If you feel obligated to make a donation, there's a link on my channel. Thanks!
Рекомендации по теме
Комментарии
Автор

Hello Adam,
We receive the expected result by simply changing the letter in the application method. Why in Predicate is the same letter "A", what influences this?
I have found this better, may be.

String letters = "B";
Predicate<Player2> startsWithA = player ->
Function<String, Predicate<Player2>> startsWithLetter = letter -> startsWithA;
-> System.out.println(x));

Thanks for your lessons!

VadimC
visit shbcf.ru