What good is an software engineer if he can’t keep revisiting the DS problems. It is like a pill for my laziness that keeps crawling ever so often.
The problem I am talking about is mentioned in this cool portal exercism.io that I use almost on a weekly basis.
The utility package java.util.function has this functional interface Consumer.
Each functional interface (Annotated with @FunctionalInterface) conceptually has a single method (abstract) called the functional method to which the lambda expression’s parameter and return types are matched against. Functional interfaces often represent abstract concepts like functions, actions, or predicates.