code: int remove(T object) {
          int positionOfRemove = mObjects.indexOf(object);
          if (positionOfRemove >= 0) {
              T objectRemoved = removeAt(positionOfRemove);
              if (objectRemoved != null) {
                  return positionOfRemove;
              }
          }
          return -1;
      }
docs: Remove the specified object of the array.
  
  @param object The object to add at the end of the array.