title: Getting Error in Eclipse "Cannot instantiate the type Scanner"
body: <p>I am trying to learn java but While dealing with the Scanner type I ran into the error, "Cannot instantiate the type Scanner".
  here is my code</p>
  
  <pre><code>import com.sun.java_cup.internal.runtime.Scanner;
  
  public class Main {
      public static void main(String[] args) {
  
          Scanner input = new Scanner(System.in);
          int a = 2;
  
          for (int i = 1; i != 10; i++) {
              System.out.println(a + " X " + i + " = " + a * 1);
          }
          int i = 1;
          while (i != 10) {
              System.out.printf("%d X %d = %d\n", a + 10, i, (a + 10) * i);
              i++;
          }
      }
  }
  </code></pre>