title: How to check the end of line using Scanner?
body: <p>I have searched similar questions, but none helped.</p>
  
  <p>Consider a file :</p>
  
  <blockquote>
    <p>hi how are you?<br>
    where were you?</p>
  </blockquote>
  
  <p>I want to do few operations after the end of every line. If I use <code>next()</code> it wont tell me when I have reached the end of the first line.</p>
  
  <p>Also I have seen <code>hasNextLine()</code> but it only tells me if there exists another line or not.</p>