title: Is possible get variable name from arraylist content? Java
body: <p>I have this variables and this Arraylist:    </p>
  
  <pre><code>    String cod = ":)", desfondo = ":(", desCorFondo = ":|";
      ArrayList&lt;Object&gt; list = new ArrayList&lt;&gt;(Arrays.asList(1,cod,desfondo,desCorFondo));
  </code></pre>
  
  <p>I want something like this:</p>
  
  <pre><code>System.out.println(variableName from arraylist  + " " + list.get(1));
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>cod :)
  </code></pre>
  
  <p>Is it possible to get the variable name in some way, without having to use hashmap?</p>