Class Join


  • public class Join
    extends Object
    A replacement for Java 8's String.join() that will allow compilation on Java 7.
    • Constructor Detail

      • Join

        public Join()
    • Method Detail

      • join

        public static String join​(String sep,
                                  Iterable<?> iterable)
        A replacement for Java 8's String.join().
        Parameters:
        sep - The separator string.
        iterable - The Iterable to join.
        Returns:
        The string representation of the joined elements.
      • join

        public static String join​(String sep,
                                  Object... items)
        A replacement for Java 8's String.join().
        Parameters:
        sep - The separator string.
        items - The items to join.
        Returns:
        The string representation of the joined items.