import java.io.FileReader;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Properties;
public class Deom {
public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
Properties properties = new Properties();
FileReader fileReader = new FileReader("TWO\\src\\Day15\\Text06\\cofing.properties");
properties.load(fileReader);
String className = properties.getProperty("ClassName");
String functionName = properties.getProperty("FunctionName");
Class<?> c = Class.forName(className);
Object o = c.getConstructor().newInstance();
Method method = c.getMethod(functionName);
method.invoke(o);
}
}