• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

Correct error

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

java
9th Oct 2021, 10:21 PM
STOP
STOP - avatar
1 Antwort
+ 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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
What Is the most complicated thing you can do
1 Votes
Hello everyone, I want to learn programming, I don't know where to start.
1 Votes
Whyy.
0 Votes
How the operators and commands in this code are executed?
1 Votes
Combination
0 Votes
Will I get the certificate for free if I completed the free course of web development (I am not on pro subscription)
0 Votes
Somebody knows how to solve the problem finance app. Even my result is like it must be, but still I can't pass it
0 Votes
C# practice
0 Votes
I finished introduction to python
0 Votes
I would like to make a big project
0 Votes