package de.cronn.proxy.ssh.util;

import java.util.List;

public final class Utils {

	private Utils() {
	}

	public static String join(List<String> strings, String separator) {
		if (strings == null || strings.isEmpty()) {
			return "";
		}

		StringBuilder b = new StringBuilder();
		for (int i = 0; ; i++) {
			b.append(strings.get(i));
			if (i == strings.size() - 1) {
				return b.toString();
			}
			b.append(separator);
		}
	}


	public static boolean isNotEmpty(Object[] array) {
		return (array != null && array.length > 0);
	}
}

@@ -491,17 +491,16 @@
 %09return 
-(
 array !=
@@ -524,16 +524,15 @@
 ngth %3E 0
-)
 ;%0A%09%7D%0A%7D%0A

improve code formatting