我创建了一个对象列表并添加了人员:
ArrayList<Person> peeps = new ArrayList<Person>();
peeps.add(new Person("112", "John", "Smith"));
peeps.add(new Person("516", "Jane", "Smith"));
peeps.add(new Person("114", "John", "Doe"));
Run Code Online (Sandbox Code Playgroud)
我试图弄清楚如何通过ID号从列表中删除此人.因此,如果我想删除身份证号码为114的人但现在没有列入名单的人,我该怎么办?