public int orElseThrow ()

If a value is present, returns the value, otherwise throws NoSuchElementException.

Returns:  the value described by this OptionalInt

Exceptions:
NoSuchElementException    if no value is present

Since:  10