title: How can I make an iterator that never ends?
body: <p>I was just wondering what the easiest way to iterate over a set indefinitely, i.e. when it reaches the end it <code>next();</code> calls the first object. I'm assuming that this is not an already predefined function in Java, so just looking for the easiest way to implement this in Java.</p>