How do I fix a "Could not find or load main class Main" error?

Keep getting the same errors even if I change the file name to Main.Java or the name of the public class, not sure what to do.

You are viewing a single comment. View All

I'm pretty sure you need to have a main method.