default void forEachRemaining(LongConsumer action){
  Objects.requireNonNull(action);
  while (hasNext())   action.accept(nextLong());
}

default void forEachRemaining ( LongConsumer action ) { Objects . requireNonNull ( action ) ; while ( hasNext ( ) ) action . accept ( nextLong ( ) ) ; }
performs the given action for each remaining element until all elements have been processed or the action throws an exception . actions are performed in the order of iteration , if that order is specified . exceptions thrown by the action are relayed to the caller .
