public static void main(String[])
此类方法可能令人困惑,因为命名为 "main" 的方法应为应用程序入口点。
示例:
class Main { void main(String[] args) {} //此处有警告,因为没有 "public static" 修饰符 }
只能在编辑器中使用重命名此类方法的快速修复。