String class1=DesiredMethod.getSource(); String method1=class1.replaceAll(" ",""); System.out.println(method1); String class2=DesiredMethod1.getSource(); String method2=class2.replaceAll(" ",""); System.out.println(method2); if( method1.equalsIgnoreCase(method2)) { System.out.println("Both functions are equal"); }
getSource()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)