About Question enthuware.ocpjp.v8.2.1793 :

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
ssszzz
Posts: 13
Joined: Wed Jun 14, 2017 1:56 pm
Contact:

About Question enthuware.ocpjp.v8.2.1793 :

Post by ssszzz »

type in explanation of variant 'ls.stream().reduce((a, b)->a>b?a:b)':
Therefore, it will return Optional object containing Integer 9 instead of just Integer 9 and you cannot assign an object of class Optional to a variable of type int.
Not 9, but 47.
In the question body there is List<Integer> ls = Arrays.asList(10, 47, 33, 23);

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

Re: About Question enthuware.ocpjp.v8.2.1793 :

Post by admin »

Fixed.
thank you for your feedback!
Paul.
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 24 guests