Code example for NoSuchElementException

0
	return seq != null; 
} 
 
public T next() throws NoSuchElementException { 
	if(seq == null) 
		throw new NoSuchElementException(); 
	T ret = (T) RT.first(seq); 
	seq = RT.next(seq); 
	return ret; 
} 
 
public void remove(){ 
throw new UnsupportedOperationException(); 
} 
}