title: Write toString() once and for all?
body: <p>I want to have all of my classes implement <code>toString()</code> the same way using Java reflection. There are two ways I came up with.</p>
  
  <ol>
  <li><p>Create a base class such as <code>MyObject</code> overriding <code>toString()</code> and all my classes would extend it, but I'm not sure if it'd be an overkill.</p></li>
  <li><p>Use Eclipse to generate the overridden <code>toString()</code> for each class. The downside of it is that there'd be a lot of code redundancy.</p></li>
  </ol>
  
  <p>Which is the preferred method? If you go with Eclipse templates, is there a way to auto-generate it when you do New > Class, instead of having to do Source > Generate toString() every time?</p>