Java Exception Handling (Try-catch)

  • + 1 comment
    int x=s.nextInt(); 
    int y=s.nextInt();
    
    should be within try{}