title: How to add items found while iterating to an ArrayList?
body: <pre><code>ArrayList&lt;Persons&gt; persList = new ArrayList&lt;Persons&gt;();
  
  for(Persons p : persList){
      Persons pers = new Persons();
      pers = service.getPersons(id);
      p.setAddress(pers.getAddress());
      persList.add(pers);
  }   
  </code></pre>
  
  <p>Is this the right way to add all found Persons to persList? Thank you in advance.   </p>