title: how to make StdIn.isEmpty() return true?
body: <p>I am using the StdIn.isEmpty() method from the Princeton libraries provided in the Algorithms Coursera algorithms course but am confused as to how it works. I have the statement </p>
  
  <pre><code>while (!StdIn.isEmpty())
  </code></pre>
  
  <p>with some code enclosed that reads user input but I can't seem to break out of the loop. By my understanding if I hit enter without typing in any text that should mean that standard input is empty and the while loop should be broken. I looked up the code for isEmpty but it did not clarify anything: </p>
  
  <pre><code>public static boolean isEmpty() {
      return !scanner.hasNext();
  }
  </code></pre>
  
  <p>Can someone clarify how standard input works and help me fix my misunderstanding of this method?</p>