code: public static <T> T last(Iterator<T> iterator) {
  		T result = null;
  		while(iterator.hasNext()) {
  			result = iterator.next();
  		}
  		return result;
  	}
docs: Returns the last element in the given iterator or <code>null</code> if empty.
  
  @param iterator
  the iterator. May not be <code>null</code>.
  @return the last element in the iterator or <code>null</code>.