StringUtils join,合龙字符数组为字符串

StringUtils join,合并字符数组为字符串
StringUtils join,合龙字符数组为字符串String org.apache.commons.lang.StringUtils.join(Collection collection, String separator)

 

 

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).

Parameters:
collection the Collection of values to join together, may be null
separator the separator character to use, null treated as ""
Returns:
the joined String, null if null iterator input
Since:
2.3