code: private void growTo(int size) {
      this.elems.growTo(size, 0);
      this.first = 0;
      this.maxSize = size;
      this.queueSize = 0;
      this.last = 0;
    }
docs: Grows this queue to a given size.
  @param size the size