Page 1 of 1

About Question enthuware.ocpjp.v8.2.1747 :

Posted: Sun Apr 17, 2016 7:17 am
by pistriak
Hi. This line won't compile
List<Integer> al = Arrays.asList(100, 200, 230, 291, 43));

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

Posted: Sun Apr 17, 2016 8:21 am
by admin
You are right. There is an extra closing bracket.
Fixed.
thank you for your feedback!
Paul.

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

Posted: Sat Sep 17, 2016 10:58 am
by webber
It is written:
(...)
System.out.println( *INSERT CODE HERE* );
(...)

But all the options have a ";" at the end, so none of them will compile.

al.stream().filter((i)->i<200).count();

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

Posted: Sat Sep 17, 2016 9:25 pm
by admin
You are right. Fixed.
thank you for your feedback!
Paul.