int bufSize = (arraySize == 0 ? 0 : (array[0].toString().length() + separator.length()) * arraySize);
int bufSize = ((arraySize == 0) ? 0 : arraySize * (array[0].toString().length() + ((separator != null) ? separator.length(): 0)));
    public static String join(Object[] array, String separator) {        if (separator == null) {            separator = "";        }        int arraySize = array.length;        int bufSize = (arraySize == 0 ? 0 : (array[0].toString().length() +                                 separator.length()) * arraySize);        StringBuffer buf = new StringBuffer(bufSize);        for (int i = 0; i < arraySize; i++) {            if (i > 0) {                buf.append(separator);            }            buf.append(array[i]);        }        return buf.toString();    }