Mercurial Hosting > nabble
comparison src/fschmidt/util/java/Stack.java @ 68:00520880ad02
add fschmidt source
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sun, 05 Oct 2025 17:24:15 -0600 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 67:9d0fefce6985 | 68:00520880ad02 |
|---|---|
| 1 package fschmidt.util.java; | |
| 2 | |
| 3 import java.util.List; | |
| 4 import java.util.EmptyStackException; | |
| 5 | |
| 6 | |
| 7 /* | |
| 8 java.util.Stack should have been an interface. | |
| 9 */ | |
| 10 public interface Stack<E> extends List<E> { | |
| 11 public void push(E item); | |
| 12 public E pop() throws EmptyStackException; | |
| 13 public E peek() throws EmptyStackException; | |
| 14 } |
