Is it good or bad practice auto-generating toString methods for some simple classes?
I was thinking of generating something like below where it takes th
Just noticed -In NetBeans IDE you can generate toString() method by selecting fields you want to generate it for right click->insert code or use shortcut ALT+INSERT and then select toString().
Way it looks is :
@Override
public String toString() {
return "ClassName{"+"fieldName="+fieldName+'}';
}
Its great way to debug and no need for additional libs.