3 ms·
Java does indeed have `java.util.Optional`. As a non-primitive type, it can itself be `null`, or be non-`null` but not contain a value. In other words: I use
by jdmichal 7y ago
Java does indeed have `java.util.Optional`. As a non-primitive type, it can itself be `null`, or be non-`null` but not contain a value.
In other words: I used to have `null` problems. Then I used `Optional`, and now I have two `null` problems!