I am retrieving values from a database. I am extracting a double value from a database using
ResultSet rs = ....;
while(...){
rs.getDouble("num");
}
How to check if rs.getDouble ("num") is null. Since the value is stored as (MySQL) double, and I want to save it in my JVM as a double, I cannot just use! = Null.
Which is the easiest way. Converts a value to Double () and then makes .equals (null) the easiest / best (in your opinion) way?
Ankur source
share