public final class StringUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
join(java.util.List<?> elements,
java.lang.String separator)
Joins the elements of the provided list into a single String containing the provided elements.
|
static java.lang.String |
join(java.lang.Object[] elements,
java.lang.String separator)
Joins the elements of the provided array into a single String containing the provided elements.
|
public static java.lang.String join(java.util.List<?> elements,
java.lang.String separator)
elements - the list of values to join together.separator - the separator value to use.public static java.lang.String join(java.lang.Object[] elements,
java.lang.String separator)
elements - the array of values to join together.separator - the separator value to use.