public class Stack { public Stack () {....} public void push (E e) {....} public E pop () {....} public boolean isEmpty(){....} } public void p
This problem is due the fact that collections in java are not covariant. There are numerous question on SO about it, such as this one.