Java Utililty Methods Collection Concatenate

List of utility methods to do Collection Concatenate

Description

The list of methods to do Collection Concatenate are organized into topic(s).

Method

StringconcatStringsWSep(Collection strings, String separator)
concat Strings W Sep
StringBuilder sb = new StringBuilder();
String sep = "";
for (String s : strings) {
    sb.append(sep).append(s);
    sep = separator;
return sb.toString();
StringconcatTokens(Collection tokens)
concat Tokens
return concatTokens(tokens, ",");
StringconcatValues(Collection values)
Concats a collection of values.
return concatValues(values, ", ");