First JDK 1.5 util I'll need

July 30th, 2003 by Hen
public class IterarableIterator implements Iterable {     private Iterator iter;

    public IterableIterator(Iterator itr) { this.iter = iter; }       public void iterator() { return this.iter } } 

and live with the fact that iterator() can’t be called twice. SimpleIterator should implement Iterable.

One Response to “First JDK 1.5 util I'll need”

  1. Mike O'Connor Says:

    this just doesn’t make any sense at all…

    it wouldn’t even compile, blatantly!

    ???