can we write our own iterator in Java?
<p>If I have a list containing [alice,bob, abigail, charlie] and I want to write an iterator such that it iterates over elements that begin with 'a', can I write my own ? How can I do that ?</p>
