摘要: /* stream流的收集方法 练习:定义一个集合,并添加一些整数1,2, 3,4, 5,6,7,8,9, 10 将集合中的奇数删除,只保留偶数。 遍历集合得到2,4,6,8,10。*/ public class Test06 { public static void main(String[] a 阅读全文
posted @ 2024-03-26 22:09 冷风5997 阅读(102) 评论(0) 推荐(0)