DOMINIK SYMONOWICZ's blog - FOREVER HUNGRY of knowledge , sarcasm , smiling , music , dancing , and food ...lots of food.
This blog is as notes with solutions for simple problems that happen to graduate developer.
Instead of copy and paste solutions from website and add my nickname ... I tried give simplified solution with explanation , added documentation , sarcastic comment and weird example.
I hope you will enjoying reading.
Useful shortcut in Eclipse: Generate setters ang getters methods
When you learn your first language (Java in these days) , then you get very excited when you practice implementing methods ,so implementing setters and getters is very orgasmic ... however , when you start doing bigger and bigger project then you discover that writing setters and getters is very boring and you start dreaming that these things can be done automatically and ... it is possible ....
In Eclipse / SpringSource Tool Suite:
What you need to do is decleare your variable
Press Alt + Shift + S and choose "Generate Getters and Setters
and implementation is done for you :).
It means i found second reason to like Eclipse : (first one was quickfix) .