Shallow copy Integer in Java
<p>Other answers don't work for me. My question is about Integer.</p>

<pre><code>Integer i1 = new Integer(11);
Integer i2 ;
i2 = i1;
System.out.println(i1+"   "+i2);
i1 = 233;
System.out.println(i1+"   "+i2);
//~ 11    11
//~ 233    11
</code></pre>

<p>I want to let i1 and i2 related.</p>