StringUtils.join方法

D:\TDDOWNLOAD\hbase-0.90.5\hbase-0.90.5\lib\commons-lang-2.5.jar

StringUtils (Commons Lang 2.5 API)

join

public static String join(Object[] array)

Joins the elements of the provided array into a single String
containing the provided list of elements.

No separator is added to the joined String.
Null objects or empty strings within the array are represented by
empty strings.

 StringUtils.join(null)            = null
 StringUtils.join([])              = ""
 StringUtils.join([null])          = ""
 StringUtils.join(["a", "b", "c"]) = "abc"
 StringUtils.join([null, "", "a"]) = "a"
 
原文地址:https://www.cnblogs.com/lexus/p/2419237.html