redefines stream.hasNext:does this stream have one more element?
redefines stream.next:the next element in this stream