java - 如何在 Eclipse 中自动完成 main()?

标签 java eclipse

我正在使用 Eclipse Helios。我想知道是否有在Eclipse中快速添加main()方法?

最佳答案

类型

main

然后是您的内容辅助快捷键。

enter image description here


You can also add a main method from the class creation wizard. There's a checkbox to have it put in a main method for you. – rfreak

关于java - 如何在 Eclipse 中自动完成 main()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8628365/

相关文章:

Eclipse 不记得我打开的文件

java - Java中的反射是如何实现的?

Java多线程和链表操作

java - 属性 : system vs. 部署描述符与属性文件的优先级

android - 错误 : Application requires API version 14. 设备 API 版本为 13 (Android 3.2.1)

eclipse - 如何在eclipse中的java核心类中设置断点?

java - 如何让 Watson Conversation Api 在用户输入时调用 Web 应用程序 Url?

java - int[] b = new int[a.length] b=a 和 int[] b = a 之间有区别吗?

java - IntelliJ 与 Eclipse 相比有哪些优势?

c++ - `xxxx' : looks like a function definition, 但是没有参数列表;跳过明显的 body