src/main/java/com/zandero/utils/StringUtils.java
public static String join(Object[] args, String separator, Integer limit) {

		if (separator == null || separator.equalsIgnoreCase("")) {
			throw new IllegalArgumentException("Missing separator!");
		}

		if (args != null && args.length > 0) {
			List<Object> array = Arrays.asList(args);
			return join(array, separator, limit);
		}

		return "";
	}
public static String join(Object[] args, String separator, Integer limit) {

		if (separator == null || separator.equalsIgnoreCase("")) {
			throw new IllegalArgumentException("Missing separator!");
		}

		if (args != null && args.length > 0) {
			List<Object> array = Arrays.asList(args);
			return join(array, separator, limit);
		}

		return "";
	}
Joins list of string items to a single string, where items are separated
with a defined separator.

@param args      to join into string
@param separator to be used between elements
@param limit     max items to consider when joining, null or 0 to join all
@return items joined into a single string