In python i can do following:
return x or y
or
my_function(x or y)
if x != null or not empty will return or pass x else y.
My question:
There is way do this in java shorten then
return x == null ? y : x or
myFunction(x == null ? y : x)