title: Value of a field of Java object dynamically (by reflection)
body: <p>I get names of various fields in a class like this :</p>
  
  <pre><code>Field[] f = MyClass.class.getDeclaredFields();
  Sring str = f[0].toString();
  MyClass cl = new MyClass();
  </code></pre>
  
  <p>Now I want to access the (public) field <code>str</code> from the object <code>cl</code> dynamically. How do I do that?</p>