About Question enthuware.ocpjp.v11.2.3642 :
Posted: Wed Jan 27, 2021 5:28 am
I think the code should be `Integer comparisonCode = 1;` for option 3 to not change the meaning of the code.
Java Certification Resources and Java Discussion Forum
https://www.enthuware.com/forum/
Code: Select all
long l = courses.stream().peek(Course::printPassPercent)
.map(c -> testCategory.compareToIgnoreCase(c.getCategory()))
.filter(a -> comparisonCode.equals(a))
.count();