Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.function.BiFunction;

public class Main {

    public static void main(String[] args) {
        BiFunction<String, String, String> biFunction = (s1, s2) -> s1 + s2;

        String result = biFunction.apply("Just", "Java 8");
        System.out.println("Result: " + result);
    }

}