I want to make the method name in the class dynamic when I create a object from the class I want to execute the method name dynamically bellow is my code .
public static void ExecuteTest() throws Exception
{
for (int i = 1, j = 1; i < 2; i = i+1, j = j+1) {
FW_ReadExcelFile N = new FW_ReadExcelFile();
FW_ReadExcelFile.setExcelSheetEnvValues(i,i);
//java.lang.String Flag2 = N.getTCExecuteFlag() ;
String Flag = "YES";
String Flag21 = N.getTCExecuteFlag();
if ( Flag.equals(Flag21) ){
String TCName = N.getTCName();
FW_Report u = new FW_Report();
u.TCName; // the FW_Report class has many methods and I want to call the method on my demand .
}