summaryrefslogtreecommitdiff
path: root/projects/project2_LInfiniteInteger/StackInterface.java
diff options
context:
space:
mode:
Diffstat (limited to 'projects/project2_LInfiniteInteger/StackInterface.java')
-rw-r--r--projects/project2_LInfiniteInteger/StackInterface.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/project2_LInfiniteInteger/StackInterface.java b/projects/project2_LInfiniteInteger/StackInterface.java
new file mode 100644
index 0000000..1007f13
--- /dev/null
+++ b/projects/project2_LInfiniteInteger/StackInterface.java
@@ -0,0 +1,9 @@
+
+public interface StackInterface<T>
+{
+ public void push(T anEntry);
+ public T pop();
+ public T peek();
+ public boolean isEmpty();
+ public void clear();
+}