PPT Slide
Three Vector constructors:
- public Vector (int initialCapacity, int capacityIncrements);
- public Vector (int initialCapacity);
First constructor (2 parameters):
- begins with initialCapacity
- if/when it needs to grow, it grows by size capacityIncrements.
Second constructor( 1 parameter):
- begins with initialCapacity
- if/when needs to grow, it grows by doubling current size.
Third construtor (no parameters):
- begins with capacity of 10
- if/when needs to grow, it grows by doubling current size.