public static String join(Collection<?> c, String deli) {
    StringBuilder sb = new StringBuilder();
    if (c.size() > 0) {
      boolean first = true;
      for (Object o : c) {
        if (!first) {
          sb.append(deli);
        } else {
          first = false;
        }
        sb.append(o.toString());          
      }
    }
    return sb.toString(); 
  }