How can you get rid of the main.java file and replace it with another file?
How can you get rid of the main.java file and replace it with another .java file?
@Zavexeon to be able to execute a stand alone source file without also executing what is inside main...main executes first and then the separate source file does not run. I would like to use this in my class but I cannot because of this limitation.
The only workaround I have found is to copy the source into Main.java and then give the class file the name Main. But that limits being able to give multiple assignments to students.
bottom line, i don't want Main to be executed first.