title: How to iterate Field of type List using java reflection
body: <p>I have a class called User which is having List of Account class objects like this   </p>
  
  <pre><code> public class User{
     private List&lt;Account&gt; accounts = new ArrayList&lt;Account&gt;();
   }
  </code></pre>
  
  <p>The Account object is having one transient field which i want to find and do some thing with that </p>
  
  <pre><code>public class Account{
    private transient openDateInOrgDateFormat;
  }
  </code></pre>
  
  <p>This field i want to find using reflection and then check whether its transient then  do something. Through reflection how to find field of type collection and then iterate that and to find if field inside the object which is in the list is transient or not. </p>