package unit6;
import java.util.function.Predicate;
public class Stream7 {
public static void main(String[] args) {
// java.util.function.Predicate
// ???????public interface Predicate<T> {
// ???????????boolean test(T t);
// ???????}
// 断定型接口:有一个输入参数、返回值只能是布尔值
Predicate<String> predicate = (str)->str.equals("abc");
boolean boo = predicate.test("abc");
System.out.println(boo);
}
}