0
Correct error
Does the return statement in the following method cause syntax errors? https://code.sololearn.com/cNA8CXR11aWi/?ref=app
1 Answer
+ 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