ydornberg

assn2 myqueue

Oct 26th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. public class MyQueue<T> {//not sure if remove later
  2.     SimpleList list;
  3.     MyStack stack;
  4.     public MyQueue() {
  5.         // TODO Auto-generated method stub
  6.         list = new SimpleList(null);
  7.     }
  8.     public boolean isEmpty(){return true; /*remove later*/}
  9.     public void push(T value){}
  10.     public void pop(){}
  11.     public T front(){T t; t=null; return t;/*remove later*/}
  12.     public T getAt(int index){
  13.         T t=null;
  14.         return t;/*remove later*/
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment