public static String joinAsString( Object[] objects, String separator )
    {
        StringBuilder result = new StringBuilder();
        for (int i = 0; i < objects.length; i++)
        {
            Object element = objects[i];
            result.append( String.valueOf( element ) );
            if (i < objects.length - 1) result.append( separator );
        }
        return result.toString();
    }
public static String joinAsString ( Object [ ] objects , String separator ) { StringBuilder result = new StringBuilder ( ) ; for ( int i = 0 ; i < objects . length ; i ++ ) { Object element = objects [ i ] ; result . append ( String . valueOf ( element ) ) ; if ( i < objects . length - 1 ) result . append ( separator ) ; } return result . toString ( ) ; }
<p>joinAsString.</p>

@param objects an array of {@link java.lang.Object} objects.
@param separator a {@link java.lang.String} object.
@return a {@link java.lang.String} object.