use for(Iterator it = t.iterator(); it.hasNext();){
if(((Integer)it.next()).intValue() == 2){
it.remove();
}
}
to resolve ConcurrentModificationException
if(((Integer)it.next()).intValue() == 2){
it.remove();
}
}
to resolve ConcurrentModificationException