Published
- 1 min read
Creating Empty Stream
The solution for this is noted below
Creating Empty Stream
Solution
Stream<String> stream = Stream.empty();
stream.forEach(System.out::println);
Try other methods by searching on the site. That is if this doesn’t work