美文网首页
String,List与Split,

String,List与Split,

作者: 催化剂 | 来源:发表于2022-08-23 09:48 被阅读0次

    List<String> co2Names = new ArrayList<>();
    String monitorNames = StringUtils.join(co2Names, ",");

    List<Map<String, Object>> regionList = new ArrayList<>(16);

    regionList.stream().map(e -> e.get("code").toString()).collect(Collectors.joining(","));

    String[] ids = id.split(",");

    String name = StringUtils.join(ids,"','");

    List<IpsMaterial> ipsMaterials = page.getContent();

    String codes = ipsMaterials.stream().map(IpsMaterial::getMaterialUseUnit).collect(Collectors.joining(","));

    相关文章

      网友评论

          本文标题:String,List与Split,

          本文链接:https://www.haomeiwen.com/subject/jwawgrtx.html