diff --git a/src/fr/devinsy/strings/StringsUtils.java b/src/fr/devinsy/strings/StringsUtils.java index 0d96c37..fe2ef39 100644 --- a/src/fr/devinsy/strings/StringsUtils.java +++ b/src/fr/devinsy/strings/StringsUtils.java @@ -85,6 +85,40 @@ public class StringsUtils } } + /** + * Concatenates a string list. + * + * @param source + * the source + * @return the concatenate of source strings. + */ + public static String concatenate(final Collection source) + { + String result; + + result = new StringList(source).toString(); + + // + return result; + } + + /** + * Concatenates strings. + * + * @param source + * the source + * @return the concatenate of source strings. + */ + public static String concatenate(final String... source) + { + String result; + + result = new StringList(source).toString(); + + // + return result; + } + /** * Builds a string concatenating many times a source string. *