Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void push(T newEntry) {
- list.add(newEntry);
- }
- public T pop() {
- list.remove(0);
- }
- public T peek() {
- list.getEntry(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement