0
What is the problem ?
Deprecated API ?? https://code.sololearn.com/cMQEf8KKYS27/?ref=app
2 Answers
+ 2
problem is in DataBase.getValue()
ret=new Double(-0.0);
compiler accepts
ret = -0.0;
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html#%3Cinit%3E(double)
0
zemiak , I used Double's static valueOf () method and the warning no longer appears. thank you.