Skip to content

Instantly share code, notes, and snippets.

@nathanchen
Created December 11, 2012 12:47
Show Gist options
  • Select an option

  • Save nathanchen/4258315 to your computer and use it in GitHub Desktop.

Select an option

Save nathanchen/4258315 to your computer and use it in GitHub Desktop.
JAVA - Getting the Current Method Name
String name = Thread.currentThread().getStackTrace()[1].getMethodName();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment