class PeekIterator implements Iterator<T> {

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

		return nextitem;
	}

	public  PeekIterator(Iterator<T> iterator);

}