HashMap, Initialization of ArrayList<Point> as values of the map fails : <p>I've got a class called Point which has a constructor Point that inits x,y.</p>

<p>I've got a map of Point(key) and ArrayList(value),
after initializing the map, my arrayLists are still null, why is that?</p>

<pre><code>//Flip objects for the current player's choice
        Map&lt;Point, ArrayList&lt;Point&gt;&gt; flipMap = new HashMap&lt;Point, ArrayList&lt;Point&gt;&gt;();

//Init flipping map with keys
            for(int i = 0; i &lt; 8; i++)
                for(int j = 0; j &lt; 8; j++)
                    flipMap.put(new Point(i,j), new ArrayList&lt;Point&gt;());

ArrayList&lt;Point&gt; test;
            for(int i = 0; i &lt; 8; i++){
                for(int j = 0; j &lt; 8; j++){
                    if((test = flipMap.get(new Point(i,j))) == null);
                    test = new ArrayList&lt;Point&gt;();
                }
            }
</code></pre>

<p><strong>PROBLEM - This prints null:</strong></p>

<pre><code>System.out.println(flipMap.get(new Point(0,0)));
</code></pre>
