Using TDD implement a stack (dont' use the Java stack class) with the following methods:
int size();
void push(int i);
int pop();
int peek();
boolean isEmpty();
Refactor the Stack and JUNit tests to make the Stack generic so that I can have a stack of strings, ints, etc.
- Clone the repo
-
gradlew cleanIdea idea
-
gradlew clean build
- Happy Coding!
Check out this article that describes a stack: here