0

Correct error

Does the return statement in the following method cause syntax errors? https://code.sololearn.com/cNA8CXR11aWi/?ref=app

9th Oct 2021, 10:21 PM
STOP
STOP - avatar
1 Resposta
+ 2
Here is the fixed version. The return type must be double because you return a double. But a that was not the problem. A Java program needs a main method inside a class. https://code.sololearn.com/chvqkcwyQk5E/?ref=app
9th Oct 2021, 10:59 PM
Stefanoo
Stefanoo - avatar