title: I want to catch InputMismatchException but it shows compile time error
body: <p>I get the following error while compiling:</p>
  
  <pre><code>filimon.java:12: error: cannot find symbol
                  }catch(InputMismatchException ime){
                         ^
    symbol:   class InputMismatchException
    location: class filimon
  1 error
  </code></pre>
  
  <p>My source code is:</p>
  
  <pre><code>class filimon{
      public static void main(String[] args) {
          Scanner s=new Scanner(System.in);
          try{
              System.out.println("enter 2 integer values");
              int a=s.nextInt();
              int b=s.nextInt();
              System.out.println("value of a: "+a);
              System.out.println("value of b: "+b);
          }catch(InputMismatchException ime){
              System.err.println("please enter only number value");
          }
          catch(Exception e){
              System.err.println(e);
          }
      }//main
  }//filimon
  </code></pre>
  
  <p>What is the problem? Please help me.</p>