Results 1 to 4 of 4
- 12-21-2007, 09:27 AM #1
Senior Member
- Join Date
- Nov 2007
- Posts
- 111
- Rep Power
- 0
How to generate main method stub in Eclipse
I know how to generate main method stub in Eclipse while declaring a class using Eclipse wizard for class creation. But if I don't check the "Generate main method" preference, how can later I generate main method stub.
I don't want to manually write the code.
Please advice.
- 12-29-2007, 05:16 PM #2
Member
- Join Date
- Dec 2007
- Posts
- 15
- Rep Power
- 0
Assuming content assist is turned on, you could use this the control and space key to create it.
type ma then control and spacebar key simultaneously and you should get an option co create a main method. of course then you're left with instanciating the class.
- 12-29-2007, 05:29 PM #3
Senior Member
- Join Date
- Nov 2007
- Posts
- 111
- Rep Power
- 0
Thanks mate. I just tested it and it worked.
Keep posting :D
- 12-29-2007, 05:38 PM #4
Member
- Join Date
- Dec 2007
- Posts
- 15
- Rep Power
- 0
No problem buddy, there's a list of top ten tips for shortcuts using eclipse. We were given a presentation on it by IBM.
I just checked it and here it is, pretty sure that's all of it.
Anyways, happy programming
Top 10 Tips For New Eclipse Users - simply complex
Similar Threads
-
Calling main method
By eva in forum New To JavaReplies: 7Last Post: 11-06-2009, 01:37 PM -
A query about main method
By mew in forum New To JavaReplies: 2Last Post: 12-24-2007, 09:44 AM -
Private main method
By bugger in forum New To JavaReplies: 1Last Post: 12-21-2007, 09:45 AM -
main method
By eva in forum New To JavaReplies: 5Last Post: 12-19-2007, 09:25 AM -
The main method in java...
By lenny in forum New To JavaReplies: 1Last Post: 07-31-2007, 06:21 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks