-
-
Save pramodpk89/40c1f3e7d1d66796d3f782daec03a263 to your computer and use it in GitHub Desktop.
Simple biconsumer implementation to take 2 input strings, and display them on console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
displayName.accept("Sachin","Tendulkar"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment