Complete the program below in order to make run properly byadding try-catch blocks in the main method.
public class ExceptionWithThrow {
public static Scanner openFile(String fileName) throwsFileNotFoundException{ FileReader fr = new FileReader(fileName);
Scanner sc = new Scanner (fr);
return sc;
}
public static boolean isValidIdentifier(String name){
// check here if the name is a valid identifiername
}
public static String readValidIdentifierName() throwsInputMismatchException{ Scanner input = new Scanner(System.in);
String name = input.next();
if ( ! isValidIdentifier() )
throw new InputMismatchException();
return name; }
public static int readInteger() throws InputMismatchException {Scanner input = new Scanner (System.in);
int num = input.nextInt();
return num;
}
public static boolean isDivisible(int x, int y) throwsArithmeticException { if (y == 0)
throw new ArithmeticException(); if (x
PayPal Gateway not configured
PayPal Gateway not configured