Is there a simple way of testing if the generator has no items, like peek, hasNext, isEmpty, something along those lines?

24 Answers
24

Leave a Reply

Your email address will not be published. Required fields are marked *