Java Fundamentals - Lesson 38 - java.util.function

preview_player
Показать описание
Are you new to Java development? Do you want to know what to start with? This is a complete stream dedicated to you - the junior developer or future developer.

- Java OCP 11 certification
- Learn Java basics
- Find a junior java developer role

If your target is at least one of the above, then this lesson streaming is for you. Join!

Don't forget to follow me on Twitter @laurspilca or LinkedIn for more posts and discussions.

Рекомендации по теме
Комментарии
Автор

Initial introduction about lambda made everything crystal clear. Great content. Thank you

trishulcurtis
Автор

from spring to java to software your explanations r legendary!

mikhailpalagashvili
Автор

Man I love how you make everything understandable by providing simple examples. Keep it up! 💙

farzankh
Автор

Thank you this makes functional interface quite easy to understand and apply.

AmitMishra-rino
Автор

in time stamp 21:14 WHERE YOU USE THE Consumer<String> c1 = can you pass that value to another function or can use it (if it was an integer in a calculation or something)

peterfraga
Автор

Hi Laurentiu,
Hope you are doing good... looking at Suppliers is it possible to pass a function and if so can I pass it values...
just learning lets say I want to pass 2 integers can I do this ...

import java.util.function.Supplier;

public class Example4 {

public static void main(String[] args) {
int a = 3;
int b = 4

Supplier<Integer> s = (a, b) -> multi();

System.out.println(s.get());

}

}

public Integer multi() {
return 7*3;
}
I get numerous errors, if it can be done can you tell me how please...

Lets say I want to do this using the BiFunction how can I get something like this to work..

peterfraga
visit shbcf.ru