title: Converting enhanced loop into Java 8 Streams, filter - forEach
body: <p>I am trying to learn Java 8. Is there a way to turn the method below into Java 8 Streams, <code>filter</code>, and <code>forEach</code>. If so, how?</p>
  
  <pre><code>protected void isValidId(CarModel model, List&lt;String&gt; errors) throws DataAccessException {
  
      CarStyle[] styles = model.getStyles();
  
      for(CarStyle style : styles){
          if(!style.isModels()){
              if(style.getStyleId() &gt; 99){
            errors.add(INVALID_ID + ", Id:" + style.getStyleId());
  
              }
          }
      }
  }
  </code></pre>
  
  <p>I read some tutorials on java 8 but unsure how to implement this. Thanks.</p>
  
  <p><strong>EDIT:</strong> I added a list to the method.</p>