Ask coding questions

← Back to all posts
Why is the code not working?
SkillsOrange

I am sure 100% that the code is good, but why does it gave me an error?

Voters
SkillsOrange
Comments
hotnewtop
SixBeeps

Read the error message.

You have a file named Main.java. The file name must match the class name, so your class name needs to be Main as well.