Assume we have create UserProfile class.

Now we will create the constructor
"right click + source"
or
"alt + shift + s" on windows
or
"alt + cmd + s" on mac
then select
"Generate Constructor using Fields..."
Select all fields you need

and click OK, it should be like this

and let's generate the getter and setter, open the source menu like above, then select
"Generate Getters and Setters..."

"Select all" or what ever you need, then boom, Eclipse save your fingers.
1 comment:
thanks dude, that helped.
Post a Comment