### Dynamic array stack

##### Dynamic array stack, which will auto shrink & grow.

Source Code:

Github: DynamicArrayStack.java

**Output:**

Capacity: 4 Stack : [6, 5, 4, 2, 1] Capacity: 8 Stack pop: 6 Stack pop: 5 Stack pop: 4 Stack pop: 2 Stack : [1] Capacity: 2