Created
December 18, 2017 11:40
-
-
Save skmangalam/3b93eec05e43e82cc12bf41e3900e9ab to your computer and use it in GitHub Desktop.
Stack Interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface Stack<X> { | |
| public void push(X item); | |
| public X pop(); | |
| public boolean contains(X item); | |
| public X access(X item); | |
| public int size(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment