I changed class name but still getting Main error when i try to run, why?
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?
Voters
Ask coding questions
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?
Repl packages the java program under the file Main.java.
So, it's practically required to have in order to run your program.