title: How to get variable name in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/744226/java-reflection-how-to-get-the-name-of-a-variable">Java Reflection: How to get the name of a variable?</a>  </p>
  </blockquote>
  
  
  
  <p>I've found various discussions on this topic but never any satisfying answer..</p>
  
  <pre><code>A anyVariableName = new A();
  </code></pre>
  
  <p>How can I get the name of the variable <code>anyVariableName</code> and get string <code>"anyVariableName"</code> as a result?
  Is this possible in Java?</p>