Skip to content
← Back to Community
Need help correcting an error * urgent*
Profile icon
NanaOhene_Nyark

The code is trying to calculate grade averages but I get an error in my method

Voters
Profile icon
NanaOhene_Nyark
Comments
hotnewtop
Profile icon
pyelias

On repl.it your class has to be named Main. (you could also move it to another file named Lab03.java)

Profile icon
NanaOhene_Nyark

@pyelias
I made the correction (I probably messed it up) but got way more errors than before

Profile icon
SaweraRehman

(year + month + day = variables) it says this line has an error
can you please tell me how to?

Profile icon
abc3354

Elias said it.
But take care, your first if statement (line 37) do not do anything.
You need to remove the semcolon ";" and maybe to use braces.