Given the code fragment:
List<String> colors = Arrays.asList("red", "green", "yellow");
Predicate<String> test = n - > {
System.out.println("Searching"¦");
return n.contains("red");
};
colors.stream()
.filter(c -> c.length() > 3)
.allMatch(test);
What is the result?
M_Jawad
Highly Voted 5 years agoasdfjhfgjuaDCV
Most Recent 10 months, 2 weeks agosteefaand
11 months, 2 weeks agojduarte
3 years, 9 months agopul26
4 years, 1 month agoadnano1234
5 years ago