Say, I have some Java code
public static void method1(){
...//method body
method2();
}
public static void method2(){
...//method body
}
I want method2 to be able to know, as a String, what method called it. For example, in this case, if method1 were run, calling method2, method2 could print out that it was called from method1.
Thanks in advance!