December 11, 2018

How to use or implement java.util.function.BiConsumer interface in java.

BiConsumer is a Functional Interface . It has two methods, one abstract and other one is default method. void accept(T parameter1, U parameter2) :- It accepts two parameters and does not return anything. default BiConsumer<T, U> andThen(BiConsumer< ? super T, ? super U> applyThisAfterProcessing) :-  This function takes one BiConsumer and returns another BiConsumer .The BiConsumer , which is passed in as an argument […]

Read more