The method main cannot be declared static; static methods can only be declared in a static or top level type这个错误怎么改
这个错误是因为您在一个非静态的内部类中声明了一个静态方法。您需要将该方法移动到一个静态类或顶级类中才能解决此错误。或者,您可以将内部类声明为静态类,这样您就可以在其中声明静态方法。
原文地址: https://www.cveoy.top/t/topic/fNeY 著作权归作者所有。请勿转载和采集!