0

What is the problem ?

Deprecated API ?? https://code.sololearn.com/cMQEf8KKYS27/?ref=app

3rd Jan 2022, 10:38 AM
Mahatma Tefnakht
Mahatma Tefnakht - avatar
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)
3rd Jan 2022, 5:05 PM
zemiak
0
zemiak , I used Double's static valueOf () method and the warning no longer appears. thank you.
3rd Jan 2022, 5:38 PM
Mahatma Tefnakht
Mahatma Tefnakht - avatar