Java8:Effective use of Consumer Functional Interface

Java8:Effective use of Consumer Functional Interface
Java8 provides a functional interface called Consumer, Whose signature looks like following @FunctionalInterface public interface Consumer<T> {     void accept(T t);     default Consumer<T> andThen(Consumer<?...