Skip to content
Snippets Groups Projects
Commit 23a4faa0 authored by Mathea Berg Vindsetmo's avatar Mathea Berg Vindsetmo
Browse files

of5_2 lf

parent e31c6985
No related branches found
No related tags found
No related merge requests found
package of5_2.lf;
import java.util.function.Predicate;
public class YoungAnimalPredicate implements Predicate<Animal> {
@Override
public boolean test(Animal t) {
return t.getAge() <= 2;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment