I've always despised having to create a project in order to run a single Java file, which apparently I have to do in Eclipse. I finally figured out how to add a file to my project, but once I do that and I try to run the file, I get the following error: Editor does not contain a main type
What am I doing wrong? What all do I need to do to get an existing .java file to compile and run in Eclipse (apparently I have to add it to a project, which I now know how to do)?