This code snippet helps to retrieve the name of the method that is currently being executed.
String methodName = Thread.currentThread().getStackTrace()[1].getMethodName(); //methodName wil hold the current method's name
This code snippet helps to retrieve the name of the method that is currently being executed.
String methodName = Thread.currentThread().getStackTrace()[1].getMethodName(); //methodName wil hold the current method's name
Bloggerized by DheTemplate.com - Main Blogger