code: public void forEach(@NotNull IntConsumer action) {
          while(iterator.hasNext()) {
              action.accept(iterator.nextInt());
          }
      }
docs: Performs an action for each element of this stream.
  
  <p>This is a terminal operation.
  
  @param action a non-interfering action to perform on the elements