Ad
  • Default User Avatar

    Thanks, I was struggling on this one :)

  • Custom User Avatar

    ... yielding Token items until there are no more items to yield, at which point it should do whatever the appropriate action is for your chosen language.

    I don't know Java, but a quick search reveals that next() should throw an exception when there's nothing more to return. Since this is the official spec of the interface, I'd say it's rather more obvious than not.