class StringUtils {

	public static String join(String[] array, String delimiter) {
		if (array == null) {
			return null;
		}
		if (delimiter == null) {
			delimiter = "";
		}
		StringBuilder buf = new StringBuilder();
		for (int i = 0; i < array.length; i++) {
			buf.append(array[i]);
			if (i < array.length - 1) {
				buf.append(delimiter);
			}
		}
		return buf.toString();
	}

}