title: Can't use Scanner class, constructor is undefined, method is undefined
body: <p>When i want import scanner class in my project eclipse show me some errore :</p>
  
  <blockquote>
  <pre><code> Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
    The constructor Scanner(InputStream) is undefined
    The method nextLine() is undefined for the type Scanner
  </code></pre>
  </blockquote>
  
  <p>and this is my code :</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Scanner {
  
      public static void main(String[] args) {
  
          Scanner myScanner = new Scanner(System.in);
          System.out.println(myScanner.nextLine());
  
      }
  
  }
  </code></pre>