Labels

Thursday, June 7, 2012

How to Get name of current method in Java?

String methodName = Thread.currentThread().getStackTrace()[1].getMethodName

No comments:

Post a Comment