先检查低级错误,自信点的可以不检查(^|-|^)
1.有可能main写成了mian
2.主函数是不是忘了写string []args;
3.忘记加static修饰
那些低级错误是不会有的,如果一个包里面有多个main函数,他就会执行上次你debug的main函数,这是一个不咋靠谱的人和我说的,直接上解决方法吧:
right click the class that you want to debug => debug configrations => main => determine the project and main class