
//This is just an Example. We will doing this in a different way to achieve this.


public class Xplain {
  private static final String FileNotFound= "java.io.FileNotFoundException";
          
     public static String explain(Exception e){
          String message;     
           String solution;
       String result = "";
           String exception = e.toString();
         
            if(exception.contains(FileNotFound)){
                  message = "Mr.JVM says: The file you are trying to open doesn't exist in the path that you have specified \n";
                  solution = "Solution: Try checking the path of your file again , If the file doesn't exist then create a file in the name that you have specified in in your code. This is should do it!";
                result = message + solution;
           }
            
        return result;
    }
    
}

@@ -89,786 +89,88 @@
 lic 
-class Xplain %7B%0A  private static final String FileNotFound= %22java.io.FileNotFoundException%22;%0A          %0A     public static String explain(Exception e)%7B%0A          String message;     %0A           String solution;%0A       String result = %22%22;%0A           String exception = e.toString();%0A         %0A            if(exception.contains(FileNotFound))%7B%0A                  message = %22Mr.JVM says: The file you are trying to open doesn't exist in the path that you have specified %5Cn%22;%0A                  solution = %22Solution: Try checking the path of your file again , If the file doesn't exist then create a file in the name that you have specified in in your code. This is should do it!%22;%0A                result = message + solution;%0A           %7D%0A            %0A        return result;%0A    %7D%0A    %0A%7D
+interface Xplain %7B%0A %0A       String explain(Exception e);%0A       %0A       %0A       %0A%7D%0A
 %0A

Update Xplain.java