IBM interview question

How do you implement a stack data structure in Java?