4
votes
3answers
492 views

A simple array-based Stack class in Java, what are my mistakes?

I have created a simple array-based Stack class with some methods like the actual Stack in Java. I am testing this for mistakes, but since I am learning Java and my tests may not be as comprehensive ...
2
votes
3answers
464 views

How to improve my stack implementation (uses array)?

Below is an implementation of a stack data structure using arrays. Please comment on the same. How can it be improved? Specific improvements I am looking for: Memory leaks C++ style Making code run ...