Can I modify a "referenced" integer variable?
<p>I realize that if I pass an object as a parameter of a function and do changes to it, the changes "stay" with the object. But it is not the case for an integer.</p>

<pre><code>public void start() {
    int x = 100;
    modify(x);
    // I would like x to be 200 now. But it isn't :(
}

public void modify(int y) {
    y *= 2;
}
</code></pre>

<p>So basically, is there a way to achieve what I wanted in the code above? Is it possible to modify an integer like that (like an object reference)?</p>
