Map<String,Long> map = new HashMap<>();
map.put("aaa",1L);
map.put("bbb",2L);
map.put("ccc",1L);
Map<String, Long> map2 = map.entrySet().stream().filter(e -> e.getValue().intValue() > 1)
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
String str = map.entrySet().stream().filter(e -> e.getValue().intValue() > 1)标签:map,stream,Map,entrySet,getValue,put,字符串,java8 From: https://www.cnblogs.com/keguankele/p/17782664.html
.map(e -> e.getKey())
.collect(Collectors.joining("、","{","}"));