Can someone explain the code below? Is .next an operator in java that pushes the pointer to the next node in the linked list?
Node E < -- type node?
public E dequeue ( ) throws EmptyQueueException {
if (isEmpty ( )) {
throw new EmptyQueueException (”Queue under flow”) ;
else{
if (end==front.next) // Special case , dequeue single element in queue
end = front;
E val = front.next.element;
front.next = front.next.next; / / Bypass first node
return(val);
}
}
`