Skip to content

Instantly share code, notes, and snippets.


pramodpk89/ Secret

Created Apr 24, 2020
What would you like to do?
Simple biconsumer implementation to take 2 input strings, and display them on console.
package com.ppkcodes;
import java.util.function.BiConsumer;
public class BiconsumerEx {
public static void main(String[] args) {
BiConsumer<String,String> displayName=(fName,lName)-> System.out.println(fName+" "+lName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment