马老师moNGoDB最热门 马老师NEo4J图数据教程
public boolean predicate(Integer i, Predicate<Integer> p) {
return p.test(i);
}
public Integer function(Integer i, Function<Integer, Integer> f) {
return f.apply(i);
}}public class MainClass {
public static void main(String[] args) {
int num = new Random().nextInt(100) + 1;
LambdaTest test = new LambdaTest();
// Consumer