标签:lin java Collector list path stream arraylist new array
List<String> menuPathlist = new ArrayList<String>();
List<String> menuIds = menuPathlist.stream().map(line -> line.split("/")).flatMap(Arrays::stream)
.distinct().collect(Collectors.toList());
标签:lin java Collector list path stream arraylist new array
原文地址:https://www.cnblogs.com/merseyalma/p/9481109.html