public static String objectRefString(Object obj) {
    return obj != null
        ? obj.getClass().getSimpleName() + '@' + Integer.toHexString(System.identityHashCode(obj))
        : "(null)";
  }
Remove element from an array. The element is removed at the specified position, and all
remaining elements are moved to the left.

@param originalArray array to remove from
@param pos position to remove
@return the new array
geode-core/src/main/java/org/apache/geode/internal/util/ArrayUtils.java