class PeekIterator implements Iterator<T> {

	@Override
	public T next() {
		if (!hasNext()) {
			throw (new NoSuchElementException("Iterator has no elements left."));
		}

		T toReturn = nextitem;
		nextitem = null;
		return toReturn;
	}

	public  PeekIterator(Iterator<T> iterator);

}