StringUtils join,合龙字符数组为字符串
StringUtils join,合并字符数组为字符串
String org.apache.commons.lang.StringUtils.join(Collection collection, String separator)
Parameters:
collection the
separator the separator character to use, null treated as ""
Returns:
the joined String,
Since:
2.3
Joins the elements of the provided Collection
into a single String containing the provided elements.
No delimiter is added before or after the list. A null
separator is the same as an empty String ("").
See the examples here: join(Object[], String)
.
Collection
of values to join together, may be nullnull
if null iterator input