size: 0
capacity: 4
list:
push(ant): successful
size: 1
capacity: 4
list: ant
push(bat): successful
size: 2
capacity: 4
list: bat ant
push(cat): successful
size: 3
capacity: 4
list: cat bat ant
push(dog): successful
size: 4
capacity: 4
list: dog cat bat ant
peek(0): dog
peek(1): cat
peek(2): bat
peek(3): ant
pop: dog
push(dove): successful
peek(0): dove
peek(1): cat
peek(2): bat
peek(3): ant
size: 4
capacity: 4
list: dove cat bat ant
push(eel): successful
push(frog): successful
push(goat): successful
push(hamster): successful
push(iguana): successful
size: 9
capacity: 16
list: iguana hamster goat frog eel dove cat bat ant
pop: iguana
pop: hamster
pop: goat
pop: frog
pop: eel
pop: dove
pop: cat
pop: bat
pop: ant
pop: Failure due to exception: "Pop of empty stack"
pop: Failure due to exception: "Pop of empty stack"
list:
size: 0
capacity: 16
push(jackal): successful
list: jackal
size: 1
capacity: 16
