馬老師moNGoDB最熱門 馬老師NEo4J圖數(shù)據(jù)教程
? 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
標(biāo)簽: