09 2020 档案

摘要:1. 使用Arrays.asList()将数组转化为List注意事项 Integer[] integers = {1, 2, 3, 4, 5}; //直接将数组转化为List,其底层表示仍然是数组,因此不能调整尺寸,也就不能进行增删 List<Integer> integerList = Array 阅读全文
posted @ 2020-09-19 21:44 it00zyq 阅读(99) 评论(1) 推荐(0)
摘要:/** * @descrition: 获取当天00:00 * @param date : * @return : java.util.Date */ public static Date getFirstTimeOfDay(Date date) { Calendar calendar = Calen 阅读全文
posted @ 2020-09-14 15:16 it00zyq 阅读(91) 评论(0) 推荐(0)
摘要:什么是Stream流? Stream(流)是一个来自数据源的元素队列并支持聚合操作 元素队列 元素是特定类型的对象,形成一个队列。 Java中的Stream并不会存储元素,而是按需计算。 数据源 流的来源。 可以是集合,数组,I/O channel, 产生器generator 等。 聚合操作 类似S 阅读全文
posted @ 2020-09-14 15:08 it00zyq 阅读(232) 评论(0) 推荐(0)