Given the code fragments:
interface CourseFilter extends Predicate
public default boolean test (String str) {
return str.equals (''Java'');
}
}
and
List
Predicate
Predicate cf2 = new CourseFilter() { //line n1
public boolean test (String s) {
return s.contains (''Java'');
}
};
long c = strs.stream()
.filter(cf1)
.filter(cf2//line n2
.count();
System.out.println(c);
What is the result?
Brittni
1 months agoTran
1 months agoSanjuana
12 days agoSherly
17 days agoJani
19 days agoDonette
1 months agoSherita
7 days agoCherry
10 days agoNakita
12 days agoEun
2 months agoCandra
14 days agoBernardo
15 days agoMary
27 days agoJamey
2 months agoTatum
1 months agoAntonio
1 months agoKristeen
1 months agoSharika
2 months agoAvery
2 months agoLilli
2 months agoAvery
2 months agoBrice
2 months agoTiffiny
2 months agoBrice
2 months ago