Need help with HashMaps?
<p>I have a following scenario: </p>

<pre><code>    public class MapTest {
    String name = "guru";
    /**
     * @param args
     */
    public static void main(String[] args) {
        MapTest mapTest = new MapTest();
        Map map = new HashMap();
        map.put("name", mapTest.name);

        System.out.println(mapTest.name);
        map.put("name", "raj");
        System.out.println(mapTest.name);
    }

   }
</code></pre>

<p>output is: </p>

<pre><code>guru
guru
</code></pre>

<p>is there any way that I can get the output as </p>

<pre><code>guru
raj
</code></pre>

<p>ie. I want the HashMap <code>map</code> and the member variable <code>name</code> to in sync.</p>

<p>Thanks.</p>
