class StringUtils {

  public static String join(final Iterable<?> values, final String token) {
    boolean init = false;

    final StringBuilder buffer = new StringBuilder();

    for (final Object value : values) {
      if (init) {
        buffer.append(token);
      }
      init = true;
      buffer.append(value);
    }

    return buffer.toString();
  }

}