import java.util.function.Function; public class Main { public static void main(String[] args) { String result = calc((a) -> "Result: " + (a * 2), 10); System.out.println(result); } public static String calc(Function<Integer, String> bi, Integer i) { return bi.apply(i); } }