JAVA笔记

//把数组no转换成单引号的字符串'07ba056be77b4c5d93e5a37f6685863c','0ec1b806cbdb4cd5a7f614a461f05443','19de5457fd7543fbb3ca06361ee735c3'
 String collect = no.stream().map(code -> "'" + String.valueOf(code) + "'").collect(Collectors.joining(","));

你可能感兴趣的:(java,jvm,servlet)