String[] array = new String[objects.size()]; int      i; Iterator it;  for (i = 0, it = objects.iterator(); it.hasNext(); i++) array[i] = it.next().toString();  result = join (array, delim);
result.append (sep); result.append (strings[i]); sep = delim;
    public static String join (Collection objects, String delim)    {        String result = "";        if (objects.size() > 0)        {            String[] array = new String[objects.size()];            int      i;            Iterator it;            for (i = 0, it = objects.iterator(); it.hasNext(); i++)                array[i] = it.next().toString();            result = join (array, delim);        }        return result;    }