void methodA() {
methodB(ClassA.class)
}
void methodB(Class classname) {
classname a; //not correct
HashMap<String, classname> hash = new HashMap<>(); //not correct
}
IDE is complaining it to be not correct.
I want to do something like what is being commented as //not correct. Why is it not correct and how can I do it?