ArrayList<String> Object assignment
<p>I have two separate objects <code>ArrayList&lt;String&gt;</code> in two separate packages Top and top10. I assign the value of top10 to Top in my activity. And now if I remove an element from Top it also gets removed from top10. I don't know why is this happening? I feel totally dumbfounded. Is there something I don't know about java? Or is it android? </p>

<p>This is my activity code:</p>

<pre><code>ArrayList&lt;String&gt; Top = new ArrayList&lt;String&gt;();          

// ServiceCall is the name of the class where top10 is initialized.

Top = ServiceCall.top10;

System.out.println("top WR: "+ServiceCall.top10);

if(Top.get(0).equals("Please Select")) Top.remove(0);   

System.out.println("top WR: "+ServiceCall.top10);
</code></pre>

<p>The second printed out statement has one element less than the one before.</p>
