Lets say, I have
public class ClassA {
public static void main(String[] args) {
ClassB.methodB();
}
}
and I'm calling a static function of another class
public class ClassB{
public static void methodB() {
System.out.Println("<I want to print the classname of classA>");
}
}
How do I achieve this?