How to solve the problem of running the java project without the run option

First, see if you are writing a test class! ! !
See if you have a main method, the entry point of the program! ! !
Without it, the program can only be compiled but not executed! ! 1

Guess you like

Origin blog.csdn.net/qq_42678668/article/details/106050798