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?
Abdullah_Rahahleah
Highly Voted 3 years, 7 months agoasdfjhfgjuaDCV
Most Recent 4 months, 3 weeks agosteefaand
5 months, 3 weeks agoiSnover
5 months, 3 weeks agoWilsonKKerll
2 years, 4 months agoSvetleto13
3 years, 2 months ago