摘要: 1.lambda表达式概念 Java8新特性,本质上是函数式编程,支持把函数当作参数传给方法 2.函数式接口 Functional Interface 接口只包含一个方法,称之为函数式接口 对于函数式接口,可以用lambda表达式创建接口对象 例: //有如下一个函数式接口 interface Li 阅读全文
posted @ 2026-01-13 17:33 戒骄戒躁修身养性 阅读(1) 评论(0) 推荐(0)
摘要: 题目 Java解题 public class test05 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(scanner.hasNextLine()){ Strin 阅读全文
posted @ 2025-11-09 17:24 戒骄戒躁修身养性 阅读(6) 评论(0) 推荐(0)