Removing hashmap key from an object
<pre><code>HashMap&lt;String, String&gt; user= new HashMap&lt;String, String&gt;();
user.put("userID","1");
user.put("useValue", "false");
</code></pre>

<p>I have a hashMap with these <code>keys</code> and <code>values</code>.</p>

<pre><code>Patient filterList = new Patient();
filterList.setUser(user);
</code></pre>

<p>Now i create another instance of Patient Class. </p>

<pre><code>Patient addRequest = new Patient();
user.remove("useValue");
addRequest.setUser(user);
</code></pre>

<p>Why is that it gets removed from both the objects?. Though i am removing the key only after the filterList object is formed completely. </p>
