title: Why we should I close a java.util.Scanner variable?
body: <p>I got a warning in Eclipse with the following code: </p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>Scanner money = new Scanner(System.in);
  System.out.println(money.nextLine());
  //money.close();
  </code></pre>
  
  <p><strong>Warning:</strong> </p>
  
  <pre><code>Description Resource    Path    Location    Type
  Resource leak: 'money' is never closed  apples.java /SwordsNMoney/src   line 6  Java P
  </code></pre>
  
  <p>What is this warning and what does 'Resource Leak' mean? </p>
  
  <p>Thank you.</p>