title: Best Practice - Collection.add() and handling boolean return value
body: <p>I did not find anything specific to this question.  I have just started working with NetBeans and it thew a 'warning' about a Manual collection add loop:</p>
  
  <pre><code>for(String str : strings){ list.add(str) }
  </code></pre>
  
  <p>Net Beans really wanted me to handle the boolean return value from the collection addition:</p>
  
  <pre><code>for(String str : strings){ boolean add = list.add(str) }
  </code></pre>
  
  <p>I have never really considered if not storing/handling the return of a collection.add() method as faulty or negligent.  I've seen it regularly to simply ignore the return value since it may not be valuable.  Is this incorrect?  What are the ramifications of not handling the return boolean value?  Or is this just an IDE thing?</p>
  
  <p>Thanks all.</p>