title: Read out all fields and their content of an object using reflection
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2126714/java-get-all-variable-names-in-a-class">java: get all variable names in a class</a>  </p>
  </blockquote>
  
  
  
  <p>How can I read out all fields and their content of an <code>Object o</code> by using the reflection api.
  I would begin with <code>o.getClass().getDeclaredFields()</code> but don't know how to continue.</p>
  
  <p>Anyone got an idea ?</p>