Here, we avoided duplicating the lambda expression code to filter negative numbers by adding it as a Predicate variable “negative”. Then we reused the Predicate variable to get negative numbers from two different lists.