Untitled
unknown
java
2 years ago
213 B
17
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...