Java 8 Optional — A practical use case
How many times in your developer life have you encountered a NullPointerException? I would bet your answer to this question is “too many to count”.
In Java, null values are a convenient way to model “the absence of a value”. But it was…