Hi there I have a few error messages coming up with my code, if someone could point me in the right direction
regards
gerry
package supermarketproject; public class LinkedQueue<T> implements QueueADT<T> { private int count; private LinearNode<T> front, rear; /** * Creates an empty queue. */ public LinkedQueue() { count = 0; front = rear = null; } public boolean isEmpty( ) { return front == null; } /** * Adds the specified element to the rear of this queue. * * @param element the element to be added to the rear of this queue */ public void enqueue (T element) { LinearNode<T> node = new LinearNode<T>(element); if (isEmpty()) front = node; else rear.setNext (node); rear = node; count++; } public T dequeue() throws EmptyCollectionException { if (isEmpty()) throw new EmptyCollectionException ("queue"); T result = front.getElement(); front = front.getNext(); count--; if (isEmpty()) rear = null; return result; } /** * Sets up this exception with an appropriate message. */ public ElementNotFoundException (String collection) { super ("The target element is not in this " + collection); } } /** * EmptyCollectionException represents the situation in which a collection * is empty. */ public class EmptyCollectionException extends RuntimeException { /** * Sets up this exception with an appropriate message. */ public EmptyCollectionException (String collection) { super ("The " + collection + " is empty."); } } }