/** * Joins the elements of the given array to a string, separated by the given separator string. * * @param array the array to join * @param separator the separator string * * @return a string made up of the string representations of the given array's members, separated by the given separator * string */ public static String join(Object[] array, String separator) { return array != null ? join( Arrays.asList( array ), separator ) : null; }