In Java, I need to return an Iterator from my method. My data comes from another object which usually can give me an iterator so I can just return that, but in some circums
Java 7 has been out for a long time now. Unless you're developing for a previous Java version, you would return an empty iterator like this:
return Collections.emptyIterator();