Tim Moores wrote:Welcome to the Ranch.
Note this comment in the Domain class:
// getters , setters , toString
That means you need to add the usual getter and setter methods: setName, getName, setScore and getScore. (toString is not needed for this example.)
Tim Moores wrote:The Domain class has no particular purpose except to illustrate the concept of BiPredicate - it models an internet domain (like "google.com") along with a "goodness" score of that domain.
The filterBadDomain method simply applies a Bipredicate to a List of domains. it's shown in action several times in the code; did you get that to run now? That should be the first step in learning from this example, as it makes it much easier to understand what's going on. (Although the source code does actually show the output of each of the System.out.println statements.)