package unit6;
import java.util.function.Function;
public class Stream6 {
public static void main(String[] args) {
// java.util.function.Function
// ???????public interface Function<T, R> {
// ???????????R apply(T t);
// ???????}
// Function函数型接口:有一个传入参数、有一个输出、传入参数T、返回类型R
Function<Integer, String> function = (b)->{
return "你好" + b;
};
String s = function.apply(123);
System.out.println(s);
}
}