@Test public void generateAnIntegerCommaSeparatedListWithEmptyList() { List<Integer> list = new ArrayList<Integer>(); assertEquals("", ListUtil.generateCommaSeparatedString(list)); }
public static <T> String generateCommaSeparatedString(List<T> list) { if (list == null || list.isEmpty()) { return ""; } String outList = ""; for (T t : list) { outList += t + ", "; } return outList.substring(0, outList.length() - 2); }
ListUtil { public static <T> String generateCommaSeparatedString(List<T> list) { if (list == null || list.isEmpty()) { return ""; } String outList = ""; for (T t : list) { outList += t + ", "; } return outList.substring(0, outList.length() - 2); } }
ListUtil { public static <T> String generateCommaSeparatedString(List<T> list) { if (list == null || list.isEmpty()) { return ""; } String outList = ""; for (T t : list) { outList += t + ", "; } return outList.substring(0, outList.length() - 2); }  }
ListUtil { public static <T> String generateCommaSeparatedString(List<T> list) { if (list == null || list.isEmpty()) { return ""; } String outList = ""; for (T t : list) { outList += t + ", "; } return outList.substring(0, outList.length() - 2); }  static List<Integer> compare(List<Integer> list1, List<Integer> list2); static List<Integer> compareAndReturnMatches(List<Integer> list1, List<Integer> list2); static String generateCommaSeparatedString(List<T> list); }
ListUtil { public static <T> String generateCommaSeparatedString(List<T> list) { if (list == null || list.isEmpty()) { return ""; } String outList = ""; for (T t : list) { outList += t + ", "; } return outList.substring(0, outList.length() - 2); }  static List<Integer> compare(List<Integer> list1, List<Integer> list2); static List<Integer> compareAndReturnMatches(List<Integer> list1, List<Integer> list2); static String generateCommaSeparatedString(List<T> list);  }