Suppose i have a file named DevelopmentFeeCalculator in the project folder, now i want to get the class name of this file
class main {
public static void main(String [] args) throws Exception
{
String className = System.getProperty(DevelopmentFeeCalculator.class.getName());
String
className1 = System.getProperty("user.dir.DevelopmentFeeCalculator.class.getName()");
String
className2 = System.getProperty("DevelopmentFeeCalculator.class.getName()");
}
}
none of them works.