LinkedList temp = RawDataList.time_List.stream() .map(Tools::getMonthFromDate) .collect(Collectors.toCollection(LinkedList::new)); //通过方法的名字直接使用方法,是lambda的简化,等价于 .map(e->Tools.getMonthFromDate(e))