title: Program doesn't print anything until Scanner#nextLine() received not a "blank space" nor "enter"
body: <pre><code>Scanner in = new Scanner(System.in);
  while (in.hasNext()) {
      String a = in.nextLine();
      System.out.println(a + &quot; 1&quot;);
  }
  </code></pre>
  <p>I just wanna check what will happen when input is SPACE or ENTER, but it doesn't print anything until my input is neither SPACE nor ENTER, like this</p>
  <pre><code>a                     // input 
  a 1                   // output 
                        // SPACE(input) 
  c                     // input
    1                   // output
  c 1                   // output
  </code></pre>
  <p>Why doesn't it print until it reads something which is neither BLANK nor SPACE? also, when it finally print, it print the SPACE which is the the line before c 1, when i input c, it give me 1  and c 1.</p>