code: public T get(int index) {
          if (index < 0 || index >= size) {
              return null;
          }
          if (!wasFullAtleastOnce && index >= emptyItemIndex) {
              return null;
          }
          return (T)(items[index]);
      }
docs: To exactly get item at index.
  @param index
  @return