摘要: package lambda; import org.junit.Test; public class TestFunction { /** * lambda表达式计算求和 */ @Test public void Test() { MyFunction mf=(x)->++x; int m=mf. 阅读全文
posted @ 2021-07-11 23:51 红尘沙漏 阅读(3723) 评论(0) 推荐(0) 编辑
摘要: package lambda; import java.util.Comparator; import java.util.function.Consumer; import org.junit.Test; public class TestLambda2 { @Test public void t 阅读全文
posted @ 2021-07-11 22:51 红尘沙漏 阅读(56) 评论(0) 推荐(0) 编辑
摘要: package test; import java.util.ArrayList; import java.util.List; import org.junit.Test; public class MyInfo { @Test public void test2() { System.out.p 阅读全文
posted @ 2021-07-11 17:19 红尘沙漏 阅读(45) 评论(0) 推荐(0) 编辑
摘要: //测试类 package test; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.Test; public class TestLambda { @Test public void 阅读全文
posted @ 2021-07-11 13:14 红尘沙漏 阅读(2046) 评论(0) 推荐(0) 编辑