 <p>No, it's not possible.</p> <p>Instead, you can store the data in a <code>Map&lt;String, YourObject&gt;</code>, use the <em>name</em> of the variable as key and retrieve the elements from the <code>Map</code> with the key to apply the values:</p> <pre><code>Map&lt;String, YourObject&gt; map = new HashMap&lt;&gt;(); map.put("stringItem1", stringItem1); map.put("stringItem2", stringItem2); //... map.put("stringItem10", stringItem10); for(int x=1;x&lt;=10;x++){ map.get("stringItem" + x).setText("LOL"); } </code></pre>