Java: How do I achieve a pointer effect without method calls?
<p>I am trying to make some sort of integer (be it <code>int</code> or <code>Integer</code>), <code>x</code>, that equals the sum of two other integers: <code>a</code> and <code>b</code>. <code>a</code> and <code>b</code> will change on occasion, so I want <code>x</code> to always be up-to-date.</p>

<p>Is there a way to do this without calling a <code>getX()</code>-like method that returns <code>a</code> + <code>b</code>?</p>
