pass by reference/value - simple example
<p>I know this issue has been addressed many times - but my Java/C++ knowledge is so weak I can barely understand the answers :-( ... what I'd really like is just a super simple example.</p>

<p>In C++ I could write the following:</p>

<pre><code>void func()
{
  int x = 3;
  add_one(x);
  // now x is 4.
}
void add_one(int &amp;var)
{
  var++;
}
</code></pre>

<p>What I'd like to see now is the simplest way to achieve the same effect with java.</p>
