![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/40ed4e74-ef5b-46ae-9461-bef1201e31b1.png)
1·
1 year agoInstead of wrapping it in an optional you can do Objects.requireNonNullElse(value, defaultValue)
Instead of wrapping it in an optional you can do Objects.requireNonNullElse(value, defaultValue)
In java 9 there is Objects.requireNonNullElse(obj, defaultValue)
And here I am, uninstalled as soon as it gave me the first 429
I’d hope they come here but get a refresh. /r/cscareeradvice was basically just a circlejerk of you have to grind leetcode and work at faang or you’re useless.