title: Java Scanner hasNextLine returning false
body: <p>This is probably due more to my lack of familiarity with the code than anything else, but I keep having the following problem:</p>
  
  <p>I have a text file that has empty lines, and a scanner that goes through the file.</p>
  
  <p>When I use the .hasNextLine() method, it returns false even though there are more lines in the file. I must point out that the file begins with an empty line, and that the text inside has more empty lines in between, and finally ends with empty lines.</p>
  
  <p>But shouldn't it return true regardless of whether the lines have text or not?</p>