public interface Predicate { public boolean predicate(Object b); } /* the Predicate interface. If you are going to implement a predicate then it must have a method called predicate that takes an object and delivers true or false */