2019年11月12日
摘要: 1、消费型接口 package com.zh.lambda; import java.util.function.Consumer; import org.junit.Test; /** * @desc Consumer<T>消费型接口 * @author zhanh247 */ public cl 阅读全文
posted @ 2019-11-12 22:26 牛鼻子老赵 阅读(670) 评论(0) 推荐(0)
摘要: 1、无参、无返回值 @Test public void test00() { Runnable r1 = new Runnable() { @Override public void run() { System.out.println("Lambda01.test01().new Runnable 阅读全文
posted @ 2019-11-12 22:11 牛鼻子老赵 阅读(1848) 评论(0) 推荐(0)
摘要: 1、构建一个lis集合类 private static List<Integer> lists = new ArrayList<Integer>(); @Before public void test0() { for (int i = 0; i <= 101; i++) { lists.add(i 阅读全文
posted @ 2019-11-12 16:09 牛鼻子老赵 阅读(13763) 评论(0) 推荐(0)