public class StringUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
join(String delimiter,
List<String> stringList)
Returns a new String composed of copies of the list elements joined
together with a copy of the specified delimiter.
|
static String |
join(String delimiter,
String[] stringArray)
Returns a new String composed of copies of the array elements joined
together with a copy of the specified delimiter.
|
public static String join(String delimiter, String[] stringArray)
delimiter - The character to separate the stringsstringArray - The strings to joinpublic static String join(String delimiter, List<String> stringList)
delimiter - The character to separate the stringsstringList - The strings to joinCopyright © 2010–2019 oshi. All rights reserved.