Remove an item from map
<p>I create a map in Java such as <code>private Map&lt;Integer, List&lt;entity&gt;&gt; m</code>, how can i remove an item stay in List?<br>
I run loop in Map to <code>m.get(key).size()</code> and remove when the condition is true:<br>
 <code>if (m.get(key).get(i).getID() = xxx);</code> removed clause <code>m.get(key).remove(i).</code><br>
Thanks all suggest!</p>
