@Test public void testDelimitStringWithEmptyList() { ArrayList<String> testList = new ArrayList<String>(); String delimitedString = StringUtilities.DelimitString(testList, ", "); assertEquals("", delimitedString); }
public static <T> String DelimitString(Collection<T> objects, String delim) { String newString = ""; for (Object string : objects) { newString += string.toString() + delim; } if (!newString.equals("")) { newString = newString.substring(0, newString.length() - delim.length()); } return newString; }
StringUtilities { public static <T> String DelimitString(Collection<T> objects, String delim) { String newString = ""; for (Object string : objects) { newString += string.toString() + delim; } if (!newString.equals("")) { newString = newString.substring(0, newString.length() - delim.length()); } return newString; } }
StringUtilities { public static <T> String DelimitString(Collection<T> objects, String delim) { String newString = ""; for (Object string : objects) { newString += string.toString() + delim; } if (!newString.equals("")) { newString = newString.substring(0, newString.length() - delim.length()); } return newString; }  }
StringUtilities { public static <T> String DelimitString(Collection<T> objects, String delim) { String newString = ""; for (Object string : objects) { newString += string.toString() + delim; } if (!newString.equals("")) { newString = newString.substring(0, newString.length() - delim.length()); } return newString; }  static String DelimitString(Collection<T> objects, String delim); static String DelimitStringAndWrapEntriesWithQuotes(Collection<T> objects, String delim); static String buildDelemtedListFromStringArray(String[] a, String separator); static String buildDelemtedListFromIntegerArray(Integer[] a, String separator); }
StringUtilities { public static <T> String DelimitString(Collection<T> objects, String delim) { String newString = ""; for (Object string : objects) { newString += string.toString() + delim; } if (!newString.equals("")) { newString = newString.substring(0, newString.length() - delim.length()); } return newString; }  static String DelimitString(Collection<T> objects, String delim); static String DelimitStringAndWrapEntriesWithQuotes(Collection<T> objects, String delim); static String buildDelemtedListFromStringArray(String[] a, String separator); static String buildDelemtedListFromIntegerArray(Integer[] a, String separator);  }