title: Java - Scanner(System.in) and "Blocking a thread"
body: <p>2 basic questions:</p>
  
  <ol>
  <li><p>When you make a scanner out of System.in, and then you write, say, "scan.nextLine()", what is actually happening before you hit "enter"? Is the thread running the code sleeping and it is awoken only when a newline character comes in from System.in? How else would it wait for the human to type in the input?</p></li>
  <li><p>When a thread is "blocked" does that mean that it's asleep? Or does it just mean that it can't enter a certain piece of code, but could be doing other stuff?</p></li>
  </ol>