摘要: Collections.toMap作用 将list按照规则转成map。 books.stream().collect(Collectors.toMap(BookgetIsbn, BookgetName)); 存在的各种坑 空指针 key值重复 空指针 & key重复 重复key 后边会覆盖前边的值 阅读全文
posted @ 2020-08-26 13:02 xj-record 阅读(1106) 评论(0) 推荐(0) 编辑