Files
30-seconds-of-code/snippets/current method name.txt
2017-12-15 01:07:31 +05:30

4 lines
119 B
Plaintext

###code to view name of current method
String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();