I\'m not sure if i\'m doing this right and don\'t know what values do these meth
ID: 3639883 • Letter: I
Question
I'm not sure if i'm doing this right and don't know what values do these methods return so I have placed null there for now so I won't have any errors. I also don't have the enqueue method filled out cause i was unsure what should go there. Please help me fill out the returns and the enqueue method.public class ObjectQueue extends LinkedList implements Queue
{
private int size;
public int size()
{
return size;
}
public boolean isEmpty()
{
return false;
}
public Object front() throws EmptyQueueException
{
if(isEmpty())
{
throw new EmptyQueueException("Queue is empty!");
}
return null;
}
public Object dequeue() throws EmptyQueueException
{
if(isEmpty())
{
throw new EmptyQueueException("Queue is empty!");
}
return null;
}
public void enqueue(Object item)
{
}
}