About Question enthuware.ocajp.i.v8.2.1468 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
TamasBuri
Posts: 6
Joined: Thu Sep 26, 2019 3:19 am
Contact:

About Question enthuware.ocajp.i.v8.2.1468 :

Post by TamasBuri »

Hi,

there isn't any short tutorial on that page:
http://enthuware.com/index.php/home/115

admin
Site Admin
Posts: 10058
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1468 :

Post by admin »

It has been moved to: https://enthuware.com/lambda-for-ocajp
Updated.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

TamasBuri
Posts: 6
Joined: Thu Sep 26, 2019 3:19 am
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1468 :

Post by TamasBuri »

Your welcome :)

DazedTurtle
Posts: 26
Joined: Wed Oct 02, 2019 1:42 pm
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1468 :

Post by DazedTurtle »

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.
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 - 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.

admin
Site Admin
Posts: 10058
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1468 :

Post by admin »

Correct. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 59 guests