Assigning in Java?
<p>Say I set int A = int B. When I change A after, it will not change the value of B. But when I set a SomeClass A = SomeClass B, and I change A's contents (like a.cost), it changes B.cost as well. Can someone explain this to me?</p>

<p>I thought Java is assigned by value, not reference?</p>
