code: public void provideCapacity(final int capacity) {
          if (c.length >= capacity) {
              return;
          }
          int newcapacity = ((capacity * 3) >> 1) + 1;
          char[] newc = new char[newcapacity];
          System.arraycopy(c, 0, newc, 0, length);
          c = newc;
      }
docs: Copies the data into a new array of at least <code>capacity</code> size.
  @param capacity