public static String toString(final Object... array) {
    final StringBuilder buffer = new StringBuilder("[");
    int count = 0;

    if (array != null) {
      for (final Object element : array) {
        buffer.append(count++ > 0 ? ", " : StringUtils.EMPTY).append(element);
      }
    }

    buffer.append("]");

    return buffer.toString();
  }
Converts the specified Object array into a String representation.
<p>

@param array the Object array of elements to convert to a String.
@return a String representation of the Object array.
@see java.lang.StringBuilder
geode-core/src/main/java/org/apache/geode/internal/util/ArrayUtils.java