@Test public void testStringJoinWithDelim() { String joinedString = StringUtils.joinUsingDelim("-", STRINGS); assertEquals(STRINGS.length, joinedString.split("-").length); }
public static <T> String joinUsingDelim(String delim, final String... elements) { return join(elements, delim); }
StringUtils { public static <T> String joinUsingDelim(String delim, final String... elements) { return join(elements, delim); } }
StringUtils { public static <T> String joinUsingDelim(String delim, final String... elements) { return join(elements, delim); }  }
StringUtils { public static <T> String joinUsingDelim(String delim, final String... elements) { return join(elements, delim); }  static String join(final String... elements); static String joinUsingDelim(String delim, final String... elements); static String join(final String[] array, final String separator); static String toHexString(byte[] bytes); static boolean isNullOrEmpty(String str); static String nullToEmpty(@Nullable String string); static String objToString(@Nullable Object obj); static @Nullable String emptyToNull(@Nullable String string); }
StringUtils { public static <T> String joinUsingDelim(String delim, final String... elements) { return join(elements, delim); }  static String join(final String... elements); static String joinUsingDelim(String delim, final String... elements); static String join(final String[] array, final String separator); static String toHexString(byte[] bytes); static boolean isNullOrEmpty(String str); static String nullToEmpty(@Nullable String string); static String objToString(@Nullable Object obj); static @Nullable String emptyToNull(@Nullable String string);  }