JOIN METHOD What do you do when you have an array of an Iterator full of Strings and you want to turn them into a single comma-separated String? This becomes an easy task by writing a generic join method. The join method takes a collection object and a delimiting String and puts the delimiting String in between the collection's Strings, not at the beginning or end. Here's an initial join implementation: static public String join(Object[] strings, String delim) { int size = strings.length; int sizeLessOne = size - 1; StringBuffer buffer = new StringBuffer(); for(int i=0; i