Skip to content
How can you get rid of the main.java file and replace it with another file?
Profile icon
akschindler

How can you get rid of the main.java file and replace it with another .java file?

You are viewing a single comment. View All
Profile icon
dublinmathking

@Zavexeon You can also in the public static void main(String[] args) method of Main.java call your target class's main method:

MyClass.main(args);