Stream流合併字符串、拼接字符串

  List<String> strings = Arrays.asList("abc", "", "de", "efg", "abcd", "", "jkl");spa String mergeString = strings.stream().filter(string -> !string.isEmpty()).collect(Collectors.joining(","));字符串 Sys
相關文章
相關標籤/搜索