package unit6;
import java.util.function.Supplier;
public class Stream9 {
public static void main(String[] args) {
// java.util.function.Supplier
// ???????public interface Supplier<T> {
// ???????????T get();
// ???????}
// 供给型接口:没有参数、只有返回值
Supplier supplier = ()->{return 100;};
Object o = supplier.get();
System.out.println(o);
}
}