Class StringUtils


  • public class StringUtils
    extends Object
    • Constructor Detail

      • StringUtils

        public StringUtils()
    • Method Detail

      • join

        public static String join​(CharSequence delimiter,
                                  Iterable<? extends CharSequence> elements)
        Returns a new String composed of copies of the CharSequence elements joined together with a copy of the specified delimiter. Like `Strings.join()` but works on Android before API 26.
        Parameters:
        delimiter - a sequence of characters that is used to separate each of the elements in the resulting String
        elements - an Iterable that will have its elements joined together
        Returns:
        a new String that is composed from the elements argument