code: private void ensureCapacity(int newLen) {
          if (newLen <= list.length) return;
          int[] temp = new int[newLen + GROW_EXTRA];
          System.arraycopy(list, 0, temp, 0, len);
          list = temp;
      }
docs: ----------------------------------------------------------------