When I try:
Queue q = new Queue();
the compiler is giving me an error. Any help?
Also, if I want to i
Queue is an interface; you can't explicitly construct a Queue. You'll have to instantiate one of its implementing classes. Something like:
Queue linkedList = new LinkedList();
Here's a link to the Java tutorial on this subject.