Hi,
there isn't any short tutorial on that page:
http://enthuware.com/index.php/home/115
About Question enthuware.ocajp.i.v8.2.1468 :
Moderators: Site Manager, fjwalraven
-
- Posts: 6
- Joined: Thu Sep 26, 2019 3:19 am
- Contact:
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1468 :
If you like our products and services, please help us by posting your review here.
-
- Posts: 6
- Joined: Thu Sep 26, 2019 3:19 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1468 :
Your welcome
-
- Posts: 26
- Joined: Wed Oct 02, 2019 1:42 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1468 :
I believe this should be (changes in bold):Observe that without the brackets over a, b, it would imply that you are trying to pass 3 arguments to processList method - a, b, and b->System.out.println(a*b), which is incorrect. You actually want to pass only two arguments - a and the lambda expression. Therefore, whenever the method of a functional interface takes more than one parameter, you need to put the arguments within brackets.
Observe that without the brackets over a, b, it would imply that you are trying to pass 3 arguments to processList method - al, a, and b->System.out.println(a*b), which is incorrect. You actually want to pass only two arguments - al and the lambda expression. Therefore, whenever the method of a functional interface takes more than one parameter, you need to put the arguments within brackets.
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1468 :
Correct. Fixed.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 86 guests