title: Whats the difference between dequeue() and front() in Java Queue?
body: <p>I have two definitions from some college notes I'm reading.</p>
  
  <p>"dequeue(): Remove the object from the front of the queue and return it; an error occurs if the queue is empty"</p>
  
  <p>"front(): Return the front object in the queue, BUT DO NOT remove it; an error occurs if the queue is empty"</p>
  
  <p>I understand the dequeue method but the front method has me a bit perplexed. Just wondering if someone has a good example of the front method being used so I can get my head around the difference between the two. Thanks.</p>