摘要: 一、Stream 1、概述 2、Stream流使用过程 示例图: 3、 Stream流的常见生成方式 示例: package itbianma01; import java.util.*; import java.util.stream.Stream; public class Demo { pub 阅读全文
posted @ 2023-12-21 17:38 搬砖滴 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 一、函数式接口 1、概述 示例: package com.itbianma09; @FunctionalInterface public interface MyInterface { void show(); } package com.itbianma09; public class Demo 阅读全文
posted @ 2023-12-21 17:03 搬砖滴 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 一、方法引用 1、概述 示例: package com.itbianma04; public class Demo { public static void main(String[] args) { usePrinttable(s-> System.out.println(s)); usePrin 阅读全文
posted @ 2023-12-21 10:43 搬砖滴 阅读(8) 评论(0) 推荐(0) 编辑