Why Does code.runnable.com Allow Me to Change a Variable's Value in Java? : <p>I heard that Java integers are <strong>pass by value</strong>, so why does the following code work in code.runnable.com? </p>

<pre><code>public class HelloWorld {
  public static void main(String[] args) {
    int number = 0;
    number = 2;
    System.out.println(number);
  }
}
</code></pre>

<p>The code will print out <strong>2</strong>.</p>
