title: Compiler presenting errors although Scanner is imported?
body: <pre><code>import java.util.Scanner;
  
  public class System {
  
      public static void main(String[]args){
          Scanner scan = new Scanner(System.in);
          String cName, cContact, cAddress, cIC, cDob, cGender;
          int i; 
      }
  }
  </code></pre>
  
  <p>Sorry if this was a repost, but i've searched high and low for a good answer, some suggested having to import java.util.Scanner which i already have, the problem is compiler kept having the error at line <code>Scanner scan = new Scanner(System.in);</code></p>
  
  <pre><code>"cannot find symbol
  symbol: variable in 
  location: class System" 
  </code></pre>
  
  <p>?! is the library corrupted or something? using NetBeans IDE 8.0.1.</p>