Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Stack<T> {
- private LinkedList<T> store;
- public Stack() {
- store = new LinkedList<>();
- }
- public int size() {
- return 0;
- }
- public T pop() {
- // write your code here
- return null;
- }
- public void push(T val) {
- // write your code here
- }
- public T peek() {
- // write your code here
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement