摘要:
public static <E> List<E> getCommonsElements(List<E> list) { return list.stream() // list 对应的 Stream .collect(Collectors.toMap(e -> e, e -> 1, (a, b) 阅读全文
摘要:
Map<String,String> mapListStream = list.stream().collect(Collectors.toMap(key,value));key对应key,value对应value 阅读全文