Page 1 of 1

[HD-OCP17/21-Fundamentals Pg 0, Sec. 21.3.2 - quiz]

Posted: Sun Mar 02, 2025 2:26 pm
by joaoclopes
Hello,

On the explanation it says:
Therefore, options A and D are correct. B, C, and E are incorrect because if the first element in the stream is an empty string, it will be dropped, which means, the first element of the resulting stream can never be an empty string.
Shouldn't it be " options A, D and E are correct. B and C are incorrect"?

Because option E is correct, right? It can never print an empty String first because it would be dropped by the Predicate.

Thanks

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 21.3.2 - quiz]

Posted: Sun Mar 02, 2025 11:39 pm
by admin
Yes, you are right. E is correct.
Duly noted.
thank you for your feedback!

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 21.3.2 - quiz]

Posted: Mon Mar 03, 2025 2:23 pm
by joaoclopes
No problem! Glad I could help!