Added Java Predicate examples