title: Scanner close after use
body: <p>While using scanner like following:</p>
  
  <pre><code>Scanner s = new Scanner(System.in);
  String response = s.next();
  
  Boolean approved = (response.contains("Y") || response.contains("y")) ? true : false;
  
  if (approved){
    Do Stuff      
  }
  s.close();
  </code></pre>
  
  <p>I'm getting no such Element exception exception:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.util.NoSuchElementException  at
    java.util.Scanner.throwFor(Unknown Source)    at
    java.util.Scanner.next(Unknown Source)****</p>
  </blockquote>
  
  <p>I'm calling s (Scanner) multiple times, the runtime error occur on the second call.
  This is due to closing the scanner and than probably using it again.
  My question is, 
  I'm creating a new instance of Scanner every time I'm using it so why I'm getting the runTime error?</p>