import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
public class Main {
public static void main
(String args
[]) {
List<String> myList = new ArrayList<String>();
myList.add("January");
myList.add("February");
myList.add("March");
myList.add("April");
Iterator<String> it = myList.iterator();
while(it.hasNext())
{
System.
out.
println("Checking: " + item
); if("February".equals(item))
{
myList.remove(item);
}
}
{
}
}
}
aW1wb3J0IGphdmEudXRpbC5MaXN0OwppbXBvcnQgamF2YS51dGlsLkFycmF5TGlzdDsKaW1wb3J0IGphdmEudXRpbC5JdGVyYXRvcjsKCnB1YmxpYyBjbGFzcyBNYWluIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZyBhcmdzW10pIHsKCQoJCUxpc3Q8U3RyaW5nPiBteUxpc3QgPSBuZXcgQXJyYXlMaXN0PFN0cmluZz4oKTsKCQlteUxpc3QuYWRkKCJKYW51YXJ5Iik7CgkJbXlMaXN0LmFkZCgiRmVicnVhcnkiKTsKCQlteUxpc3QuYWRkKCJNYXJjaCIpOwoJCW15TGlzdC5hZGQoIkFwcmlsIik7CgkJCgkJSXRlcmF0b3I8U3RyaW5nPiBpdCA9IG15TGlzdC5pdGVyYXRvcigpOwoJCXdoaWxlKGl0Lmhhc05leHQoKSkKCQl7CgkJICAgIFN0cmluZyBpdGVtID0gaXQubmV4dCgpOwoJCSAgICBTeXN0ZW0ub3V0LnByaW50bG4oIkNoZWNraW5nOiAiICsgaXRlbSk7CgkJICAgIGlmKCJGZWJydWFyeSIuZXF1YWxzKGl0ZW0pKQoJCSAgICB7CgkJICAgICAgICBteUxpc3QucmVtb3ZlKGl0ZW0pOwoJCSAgICB9CgkJfQoJCgkJZm9yIChTdHJpbmcgaXRlbSA6IG15TGlzdCkKCQl7CgkJICAgIFN5c3RlbS5vdXQucHJpbnRsbihpdGVtKTsKCQl9CgkKCX0KfQ==