Untitled
unknown
java
3 years ago
213 B
18
Indexable
public void print(Education education) {
Iterator<Person> itr = persons.iterator();
while (itr.hasNext()) {
if (itr.next().getEducation().equals(education)) {
System.out.println(itr.next());
}
}
}Editor is loading...