This was handed in as an implementation of a class, which allows iterating the lines of a file one by one. Of course, the students were supposed to use the Iterator interface from the Java library.
/**
* not in use
*/
public boolean hasNext() {
return false;
}I wonder if they even bothered to look at the documentation at all.
Advertisement
