Is there any easy way we could replace a value in a List or Collection if the value is null?
We can always do list.stream().filter(Objects::nonNu
list.stream().filter(Objects::nonNu
This may try this:
list.removeAll(Collections.singleton(null));