ConcurrentHashMap<Integer, Integer> aaa = new ConcurrentHashMap<Integer, Integer>();
aaa.put(1, 1);
aaa.put(2, 2);
aaa.put(3, 3);
Iterator<ConcurrentHashMap.Entry<Integer, Integer>> it = aaa.entrySet().iterator();
while (it.hasNext())
{
ConcurrentHashMap.Entry<Integer, Integer> entry = it.next();
System.out.println(entry);
if (entry.getValue() == 3)
{
it.remove();
}
}