1
What is the result of the code?
Predicate<String> predicate1 = t -> {
System.out.print("predicate1");
return t.startsWith(" ");
};
Predicate<String> predicate2 = t -> {
System.out.print("predicate2");
return t.length() > 6;
};
predicate1.and(predicate2).test("Hello world!!!");
Please log in or register to have a possibility to add comment.