Programming, Java, Lists, Data Structures.
newCapacity will be 14, else the size will //be doubled i.e., newCapacity will become 20 Vector doubles in size each time it runs out of space. If this doesn’t satisfy your needs, Vector also allows user to pass the value by which it needs to increment. Though the calls to grow() will reduce, the