How to get the name of the currently executing method?

J

Jeff Gaynor

Is there a way to do this? I just want to be able to print out a _quick_
message for debugging.

Thanks,

--j
 
M

Michael Borgwardt

Jeff said:
Is there a way to do this? I just want to be able to print out a _quick_
message for debugging.

System.out.println("nameOfMethod");
Anything else is neither quick to write nor to execute.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top