title: The import java.util.InputMismatchException cannot be resolved
body: <p>I'm unable to catch the InputMismatchException even though I imported <code>java.util.InputMismatchException</code>;</p>
  <pre><code>At line 2 :: The import java.util.InputMismatchException cannot be resolvedJava(268435846)
  At line 19 :: InputMismatchException cannot be resolved to a typeJava(16777218)
  </code></pre>
  <p>I'm currently using VScode editor</p>
  <pre><code>package LabPrograms;
  import java.util.InputMismatchException;
  import java.util.Scanner;
  public class Lab11 {
         public static void main(String args[]){
                Scanner sc = new Scanner(System.in);
                int n,d,res;
                try{
                     System.out.println(&quot;Enter two digits: &quot;);
                     n=sc.nextInt();
                     d=sc.nextInt();
                     res=n/d;
                     System.out.println(res);
               }
               catch(ArithmeticException ea)
               {
                     System.out.println(&quot;Divide by zero error: &quot;+ea);
               }
               catch(InputMismatchException ei)
               {
                     System.out.println(&quot;Invalid input entered: &quot;+ei);
               }
         }
     }
  </code></pre>