How can I get one variable to equal 0 by using another variable to define that variable?
<p>In Java, suppose I have two variables, <code>x1</code> and <code>xName</code>.</p>

<p>How can I get <code>x1</code> to equal 0 by using <code>xName</code>?</p>

<p><code>xName</code>'s value is <code>"x1"</code>. How can I change <code>x1</code>'s value with <code>xName</code>?</p>

<p>I have my reasons for not just changing x1 to 0.</p>

<p>edit: To clarify, I want to use xName to define x1.
if x1 = 1 initially. I want to do this basically
xName = 0. and x1 becomes 0 because xName's value is "x1".
 I've never come across it before so 
I'm just wondering if this was possible.</p>
