I\'ve gotten accustomed to many of the Java IDEs (Eclipse, NetBeans, and IntelliJ IDEA) providing you with a command to generate a default constructor for a class based on t
I'm using the following trick:
I select the declaration of the class with the data-members and press:
Ctrl+C, Shift+Ctrl+C, Ctrl+V.
The PROGRAM gets the declaration from the clipboard, finds the name of the class, finds all members and their types, generates constructor and copies it all back into the clipboard.
We are doing it with freshmen on my "Programming-I" practice (Charles University, Prague) and most of students gets it done till the end of the hour.
If you want to see the source code, let me know.