Possible Duplicate:
Java Reflection: How to get the name of a variable?
I've found various discussions on this topic but never any satisfying answer..
A anyVariableName = new A();
How can I get the name of the variable anyVariableName
and get string "anyVariableName"
as a result?
Is this possible in Java?