Modified so pop and push work from the end.
Stack test gives output:

$ java E08Stack
Stack is empty
	list has 0 elements
Pushing 5
Stack is not empty
	list has 1 elements
	first element =  5
	last element =  5
	element[0] = 5
Pushing 8
	list has 2 elements
	first element =  5
	last element =  8
	element[0] = 5
	element[1] = 8
Pushing 12
	list has 3 elements
	first element =  5
	last element =  12
	element[0] = 5
	element[1] = 8
	element[2] = 12
Popping ... it’s a 12
	list has 2 elements
	first element =  5
	last element =  8
	element[0] = 5
	element[1] = 8
Pushing 13
	list has 3 elements
	first element =  5
	last element =  13
	element[0] = 5
	element[1] = 8
	element[2] = 13
Popping ... it’s a 13
	list has 2 elements
	first element =  5
	last element =  8
	element[0] = 5
	element[1] = 8
Popping ... it’s a 8
	list has 1 elements
	first element =  5
	last element =  5
	element[0] = 5
Popping ... it’s a 5
	list has 0 elements
Stack is empty