How can you provide a default value when an `Optional` is empty?
You can use `Optional.ofNullable(value)` to provide a default value for an empty `Optional`.
Thatâ€™s incorrect. `Optional.ofNullable(value)` is used to create an `Optional` that might be empty, but doesnâ€™t provide a default value.
Can you explain how to use `orElse()` with an `Optional` to provide a fallback value?