title: Update all the elements of a list without loop
body: <p>I have a list, <code>Arraylist&lt;User&gt;</code>. The User object has field <code>active</code>. I need to update all the user objects of the list with the active field as <code>false</code>.</p>
  
  <p>Iterating through the list, I can update the field value. I want to know if there is any other way, using which I can update all the objects active field to 'false'?</p>