public class StringUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
joinStrings(List<String> list,
String delim)
This method takes a List<String> and a delimiter and joins the strings
into a single string, where the original strings are separated using
the given delimiter.
|
static List<String> |
split(String value,
String separator)
This method returns an immutable List<String>, but different from String's split()
it trims the results in the input String, and removes any empty string from
the resulting List.
|
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.