I want to prepend a stream with an Optional. Since Stream.concat can only concatinate Streams I have this question:
Stream.concat
How do I convert an Optional
In Java-9 the missing stream() method is added, so this code works:
stream()
Stream texts = optional.stream();
See JDK-8050820. Download Java-9 here.