Ask coding questions

← Back to all posts
I changed class name but still getting Main error when i try to run, why?
LezaBaker (0)

I changed my class name from Main to new name and changed it on the file name and everything looks good but when I try to run I still get Main name error. Why?

Comments
hotnewtop
MocaCDeveloper (560)

Repl packages the java program under the file Main.java.

So, it's practically required to have in order to run your program.