how to check double value is empty or not
In java double
is a primitive type which can not be null, There is Double
wrapper class in java which can be checked as null.
Declare your coords of type Double
not double
and check if Double
value is null.
In Java double
cannot be null
.